Big News: Socket raises $60M Series C at a $1B valuation to secure software supply chains for AI-driven development.Announcement
Sign In

groupdocs-python

Package Overview
Dependencies
Maintainers
1
Versions
26
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

groupdocs-python - pypi Package Compare versions

Comparing version
1.1
to
1.2
+308
groupdocs/ApiClient.py
#!/usr/bin/env python
"""Wordnik.com's Swagger generic API client. This client handles the client-
server communication, and is invariant across implementations. Specifics of
the methods and models for each application are generated from the Swagger
templates."""
from __future__ import print_function
import sys
import os
import re
import urllib
import urllib2
import httplib
import json
import datetime
import mimetypes
from models import *
from groupdocs.FileStream import FileStream
import base64
class RequestSigner(object):
def __init__(self):
if type(self) == RequestSigner:
raise Exception("RequestSigner is an abstract class and cannot be instantiated.")
def signUrl(self, url):
raise NotImplementedError
def signContent(self, requestBody, headers):
raise NotImplementedError
class DefaultRequestSigner(RequestSigner):
def signUrl(self, url):
return url
def signContent(self, requestBody, headers):
return requestBody
class ApiClient(object):
"""Generic API client for Swagger client library builds"""
def __init__(self, requestSigner=None):
self.signer = requestSigner if requestSigner != None else DefaultRequestSigner()
self.cookie = None
self.headers = None
self.__debug = False
def setDebug(self, flag, logFilepath=None):
self.__debug = flag
self.__logFilepath = logFilepath
def addHeaders(self, **headers):
self.headers = headers
def callAPI(self, apiServer, resourcePath, method, queryParams, postData,
headerParams=None, returnType=str):
if self.__debug and self.__logFilepath:
stdOut = sys.stdout
logFile = open(self.__logFilepath, 'a')
sys.stdout = logFile
url = apiServer + resourcePath
headers = {}
if self.headers:
for param, value in self.headers.iteritems():
headers[param] = value
if headerParams:
for param, value in headerParams.iteritems():
headers[param] = value
isFileUpload = False
if not postData:
headers['Content-type'] = 'text/html'
elif isinstance(postData, FileStream):
isFileUpload = True
headers['Content-type'] = postData.contentType
headers['Content-Length'] = str(postData.size)
else:
headers['Content-type'] = 'application/json'
if self.cookie:
headers['Cookie'] = self.cookie
data = None
if method == 'GET':
if queryParams:
# Need to remove None values, these should not be sent
sentQueryParams = {}
for param, value in queryParams.items():
if value != None:
sentQueryParams[param] = value
url = url + '?' + urllib.urlencode(sentQueryParams)
elif method in ['POST', 'PUT', 'DELETE']:
if isFileUpload:
data = postData.inputStream
elif not postData:
data = ""
elif type(postData) not in [unicode, str, int, float, bool]:
data = self.signer.signContent(json.dumps(self.sanitizeForSerialization(postData)), headers)
else:
data = self.signer.signContent(postData, headers)
else:
raise Exception('Method ' + method + ' is not recognized.')
if self.__debug:
handler = urllib2.HTTPSHandler(debuglevel=1) if url.lower().startswith('https') else urllib2.HTTPHandler(debuglevel=1)
opener = urllib2.build_opener(handler)
urllib2.install_opener(opener)
request = MethodRequest(method=method, url=self.encodeURI(self.signer.signUrl(url)), headers=headers,
data=data)
try:
# Make the request
response = urllib2.urlopen(request)
if 'Set-Cookie' in response.headers:
self.cookie = response.headers['Set-Cookie']
if response.code == 200 or response.code == 201 or response.code == 202:
if returnType == FileStream:
fs = FileStream.fromHttp(response)
if self.__debug: print(">>>stream info: fileName=%s contentType=%s size=%s" % (fs.fileName, fs.contentType, fs.size))
return fs if 'Transfer-Encoding' in response.headers or (fs.size != None and int(fs.size) > 0) else None
else:
string = response.read()
if self.__debug: print(string)
try:
data = json.loads(string)
except ValueError: # PUT requests don't return anything
data = None
return data
elif response.code == 404:
return None
else:
string = response.read()
try:
msg = json.loads(string)['error_message']
except ValueError:
msg = string
raise ApiException(response.code, msg)
except urllib2.HTTPError, e:
raise ApiException(e.code, e.msg)
finally:
if self.__debug and self.__logFilepath:
sys.stdout = stdOut
logFile.close()
def toPathValue(self, obj):
"""Serialize a list to a CSV string, if necessary.
Args:
obj -- data object to be serialized
Returns:
string -- json serialization of object"""
if type(obj) == list:
return ','.join(obj)
else:
return obj
def sanitizeForSerialization(self, obj):
"""Dump an object into JSON for POSTing."""
if not obj:
return None
elif type(obj) in [unicode, str, int, long, float, bool]:
return obj
elif type(obj) == list:
return [self.sanitizeForSerialization(subObj) for subObj in obj]
elif type(obj) == datetime.datetime:
return obj.isoformat()
else:
if type(obj) == dict:
objDict = obj
else:
objDict = obj.__dict__
ret_dict = {}
for (key, val) in objDict.iteritems():
if key != 'swaggerTypes' and val != None:
ret_dict[key] = self.sanitizeForSerialization(val)
return ret_dict
def deserialize(self, obj, objClass):
"""Derialize a JSON string into an object.
Args:
obj -- string or object to be deserialized
objClass -- class literal for deserialzied object, or string of class name
Returns:
object -- deserialized object"""
if not obj:
return None
# Have to accept objClass as string or actual type. Type could be a
# native Python type, or one of the model classes.
if type(objClass) == str:
if 'list[' in objClass:
match = re.match('list\[(.*)\]', objClass)
subClass = match.group(1)
return [self.deserialize(subObj, subClass) for subObj in obj]
if (objClass in ['int', 'float', 'long', 'dict', 'list', 'str']):
objClass = eval(objClass)
else: # not a native type, must be model class
objClass = eval(objClass + '.' + objClass)
if objClass in [unicode, str, int, long, float, bool]:
return objClass(obj)
elif objClass == datetime:
# Server will always return a time stamp in UTC, but with
# trailing +0000 indicating no offset from UTC. So don't process
# last 5 characters.
return datetime.datetime.strptime(obj[:-5],
"%Y-%m-%dT%H:%M:%S.%f")
instance = objClass()
for attr, attrType in instance.swaggerTypes.iteritems():
lc_attr = attr[0].lower() + attr[1:]
uc_attr = attr[0].upper() + attr[1:]
real_attr = None
if attr in obj:
real_attr = attr
elif lc_attr in obj:
real_attr = lc_attr
elif uc_attr in obj:
real_attr = uc_attr
if real_attr != None:
value = obj[real_attr]
if not value:
setattr(instance, real_attr, None)
elif attrType in ['str', 'int', 'long', 'float', 'bool']:
attrType = eval(attrType)
try:
value = attrType(value)
except UnicodeEncodeError:
value = unicode(value)
setattr(instance, real_attr, value)
elif 'list[' in attrType:
match = re.match('list\[(.*)\]', attrType)
subClass = match.group(1)
subValues = []
for subValue in value:
subValues.append(self.deserialize(subValue,
subClass))
setattr(instance, real_attr, subValues)
else:
setattr(instance, real_attr, self.deserialize(value,
attrType))
return instance
@staticmethod
def encodeURI(url):
encoded = urllib.quote(url, safe='~@#$&()*!=:;,.?/\'').replace("%25", "%")
return encoded
@staticmethod
def encodeURIComponent(url):
return urllib.quote(url, safe='~()*!.\'')
@staticmethod
def readAsDataURL(filePath):
mimetype = mimetypes.guess_type(filePath, False)[0] or "application/octet-stream"
filecontents = open(filePath, 'rb').read()
return 'data:' + mimetype + ';base64,' + base64.b64encode(filecontents).decode()
class MethodRequest(urllib2.Request):
def __init__(self, *args, **kwargs):
"""Construct a MethodRequest. Usage is the same as for
`urllib2.Request` except it also takes an optional `method`
keyword argument. If supplied, `method` will be used instead of
the default."""
if 'method' in kwargs:
self.method = kwargs.pop('method')
return urllib2.Request.__init__(self, *args, **kwargs)
def get_method(self):
return getattr(self, 'method', urllib2.Request.get_method(self))
class ApiException(Exception):
def __init__(self, code, *args):
super(Exception, self).__init__((code, ) + args)
self.code = code
#!/usr/bin/env python
"""
Copyright 2012 GroupDocs.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
"""
import os
import mimetypes
import urlparse
class FileStream(object):
"""This class encapsulates data needed either for file upload or download. All properties are initialized lazily on first access.
To use this class for file upload initialize it with absolute path to file on your filesystem.
To use this class for file download call fromHttp(response) method.
"""
def __init__(self, filePath=None, response=None):
self.__response = response # used for file download
self.__filePath = filePath # used for file upload
self.__fileName = None
self.__contentType = None
self.__size = None
self.__inputStream = None
@classmethod
def fromFile(cls, filePath):
"""filePath is an absolute path to file on your filesystem.
"""
return cls(filePath, None)
@classmethod
def fromHttp(cls, response):
"""response is a file-like object with two additional methods: geturl() and info()
"""
return cls(None, response)
@property
def fileName(self):
if self.__fileName == None and self.__filePath != None:
self.__fileName = os.path.getsize(self.__filePath)
elif self.__fileName == None and self.__response != None:
self.__fileName = self.__getValueFromCD('filename') or self.__getFileNameFromUrl(self.__response.url)
return self.__fileName
@fileName.setter
def fileName(self, value):
self.__fileName = value
@property
def contentType(self):
if self.__contentType == None and self.__filePath != None:
self.__contentType = mimetypes.guess_type(self.__filePath)[0] or "application/octet-stream"
elif self.__contentType == None and self.__response != None:
self.__contentType = self.__response.info()['Content-Type'] if 'Content-Type' in self.__response.info() else None
return self.__contentType
@contentType.setter
def contentType(self, value):
self.__contentType = value
@property
def size(self):
if self.__size == None and self.__filePath != None:
self.__size = os.path.getsize(self.__filePath)
elif self.__size == None and self.__response != None:
self.__size = self.__getValueFromCD('size')
if self.__size == None and 'Content-Length' in self.__response.info():
self.__size = self.__response.info()['Content-Length']
return self.__size
@size.setter
def size(self, value):
self.__size = value
@property
def inputStream(self):
"""returns file object
"""
if self.__inputStream == None and self.__filePath != None:
self.__inputStream = open(self.__filePath, "rb")
elif self.__inputStream == None and self.__response != None:
self.__inputStream = self.__response
return self.__inputStream
@inputStream.setter
def inputStream(self, value):
self.__inputStream = value
def __getValueFromCD(self, key):
headers = self.__response.info()
if 'Content-Disposition' in headers:
# If the response has Content-Disposition, try to get value from it
cd = dict(map(
lambda x: x.strip().split('=') if '=' in x else (x.strip(),''),
headers['Content-Disposition'].split(';')))
if key in cd:
value = cd[key].strip("\"'")
if value: return value
return None
def __getFileNameFromUrl(self, url):
return os.path.basename(urlparse.urlsplit(url)[2])
#!/usr/bin/env python
"""
Copyright 2012 GroupDocs.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
"""
class DocumentDownloadInfo:
"""
NOTE: This class is auto generated by the swagger code generator program.
Do not edit the class manually."""
def __init__(self):
self.swaggerTypes = {
'guid': 'str',
'id': 'float',
'url': 'str',
'file_type': 'str'
}
self.guid = None # str
self.id = None # float
self.url = None # str
self.file_type = None # str
#!/usr/bin/env python
"""
Copyright 2012 GroupDocs.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
"""
class GetJobResourcesResponse:
"""
NOTE: This class is auto generated by the swagger code generator program.
Do not edit the class manually."""
def __init__(self):
self.swaggerTypes = {
'result': 'GetJobResourcesResult',
'status': 'str',
'error_message': 'str'
}
self.result = None # GetJobResourcesResult
self.status = None # str
self.error_message = None # str
#!/usr/bin/env python
"""
Copyright 2012 GroupDocs.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
"""
class GetJobResourcesResult:
"""
NOTE: This class is auto generated by the swagger code generator program.
Do not edit the class manually."""
def __init__(self):
self.swaggerTypes = {
'dates': 'list[str]'
}
self.dates = None # list[str]
#!/usr/bin/env python
"""
Copyright 2012 GroupDocs.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
"""
class GetQuestionnaireExecutionResponse:
"""
NOTE: This class is auto generated by the swagger code generator program.
Do not edit the class manually."""
def __init__(self):
self.swaggerTypes = {
'result': 'GetQuestionnaireExecutionResult',
'status': 'str',
'error_message': 'str'
}
self.result = None # GetQuestionnaireExecutionResult
self.status = None # str
self.error_message = None # str
#!/usr/bin/env python
"""
Copyright 2012 GroupDocs.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
"""
class GetQuestionnaireExecutionResult:
"""
NOTE: This class is auto generated by the swagger code generator program.
Do not edit the class manually."""
def __init__(self):
self.swaggerTypes = {
'questionnaire': 'QuestionnaireInfo',
'execution': 'QuestionnaireExecutionInfo'
}
self.questionnaire = None # QuestionnaireInfo
self.execution = None # QuestionnaireExecutionInfo
#!/usr/bin/env python
"""
Copyright 2012 GroupDocs.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
"""
class GetQuestionnaireMetadataResponse:
"""
NOTE: This class is auto generated by the swagger code generator program.
Do not edit the class manually."""
def __init__(self):
self.swaggerTypes = {
'result': 'GetQuestionnaireMetadataResult',
'status': 'str',
'error_message': 'str'
}
self.result = None # GetQuestionnaireMetadataResult
self.status = None # str
self.error_message = None # str
#!/usr/bin/env python
"""
Copyright 2012 GroupDocs.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
"""
class GetQuestionnaireMetadataResult:
"""
NOTE: This class is auto generated by the swagger code generator program.
Do not edit the class manually."""
def __init__(self):
self.swaggerTypes = {
'questionnaire': 'QuestionnaireMetadata'
}
self.questionnaire = None # QuestionnaireMetadata
#!/usr/bin/env python
"""
Copyright 2012 GroupDocs.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
"""
class GetSharedLinkAccessRightsResponse:
"""
NOTE: This class is auto generated by the swagger code generator program.
Do not edit the class manually."""
def __init__(self):
self.swaggerTypes = {
'result': 'GetSharedLinkAccessRightsResult',
'status': 'str',
'error_message': 'str'
}
self.result = None # GetSharedLinkAccessRightsResult
self.status = None # str
self.error_message = None # str
#!/usr/bin/env python
"""
Copyright 2012 GroupDocs.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
"""
class GetSharedLinkAccessRightsResult:
"""
NOTE: This class is auto generated by the swagger code generator program.
Do not edit the class manually."""
def __init__(self):
self.swaggerTypes = {
'accessRights': 'int'
}
self.accessRights = None # int
#!/usr/bin/env python
"""
Copyright 2012 GroupDocs.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
"""
class QuestionnaireMetadata:
"""
NOTE: This class is auto generated by the swagger code generator program.
Do not edit the class manually."""
def __init__(self):
self.swaggerTypes = {
'assigned_questions': 'int',
'guid': 'str',
'id': 'float',
'expires': 'long',
'status': 'str',
'name': 'str',
'descr': 'str',
'modified': 'long',
'total_questions': 'int'
}
self.assigned_questions = None # int
self.guid = None # str
self.id = None # float
self.expires = None # long
self.status = None # str
self.name = None # str
self.descr = None # str
self.modified = None # long
self.total_questions = None # int
#!/usr/bin/env python
"""
Copyright 2012 GroupDocs.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
"""
class SetReviewerRightsResponse:
"""
NOTE: This class is auto generated by the swagger code generator program.
Do not edit the class manually."""
def __init__(self):
self.swaggerTypes = {
'result': 'SetReviewerRightsResult',
'status': 'str',
'error_message': 'str'
}
self.result = None # SetReviewerRightsResult
self.status = None # str
self.error_message = None # str
#!/usr/bin/env python
"""
Copyright 2012 GroupDocs.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
"""
class SetReviewerRightsResult:
"""
NOTE: This class is auto generated by the swagger code generator program.
Do not edit the class manually."""
def __init__(self):
self.swaggerTypes = {
}
#!/usr/bin/env python
"""
Copyright 2012 GroupDocs.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
"""
class SignatureDocumentFieldInfo:
"""
NOTE: This class is auto generated by the swagger code generator program.
Do not edit the class manually."""
def __init__(self):
self.swaggerTypes = {
'id': 'str',
'acceptableValues': 'str',
'locations': 'list[SignatureDocumentFieldLocationInfo]',
'signatureFieldId': 'float',
'fieldType': 'int',
'mandatory': 'bool',
'name': 'str',
'defaultValue': 'str',
'tooltip': 'str'
}
self.id = None # str
self.acceptableValues = None # str
self.locations = None # list[SignatureDocumentFieldLocationInfo]
self.signatureFieldId = None # float
self.fieldType = None # int
self.mandatory = None # bool
self.name = None # str
self.defaultValue = None # str
self.tooltip = None # str
#!/usr/bin/env python
"""
Copyright 2012 GroupDocs.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
"""
class SignatureDocumentFieldLocationInfo:
"""
NOTE: This class is auto generated by the swagger code generator program.
Do not edit the class manually."""
def __init__(self):
self.swaggerTypes = {
'locationHeight': 'float',
'id': 'str',
'fontColor': 'str',
'fontName': 'str',
'page': 'int',
'locationWidth': 'float',
'locationX': 'float',
'fontSize': 'float',
'fieldId': 'str',
'locationY': 'float'
}
self.locationHeight = None # float
self.id = None # str
self.fontColor = None # str
self.fontName = None # str
self.page = None # int
self.locationWidth = None # float
self.locationX = None # float
self.fontSize = None # float
self.fieldId = None # str
self.locationY = None # float
#!/usr/bin/env python
"""
Copyright 2012 GroupDocs.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
"""
class SignatureFormDocumentResponse:
"""
NOTE: This class is auto generated by the swagger code generator program.
Do not edit the class manually."""
def __init__(self):
self.swaggerTypes = {
'result': 'SignatureFormDocumentResult',
'status': 'str',
'error_message': 'str'
}
self.result = None # SignatureFormDocumentResult
self.status = None # str
self.error_message = None # str
#!/usr/bin/env python
"""
Copyright 2012 GroupDocs.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
"""
class SignatureFormDocumentResult:
"""
NOTE: This class is auto generated by the swagger code generator program.
Do not edit the class manually."""
def __init__(self):
self.swaggerTypes = {
'document': 'SignatureFormDocumentInfo',
'formId': 'str'
}
self.document = None # SignatureFormDocumentInfo
self.formId = None # str
#!/usr/bin/env python
"""
Copyright 2012 GroupDocs.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
"""
class SignatureFormFieldLocationSettings:
"""
NOTE: This class is auto generated by the swagger code generator program.
Do not edit the class manually."""
def __init__(self):
self.swaggerTypes = {
'locationHeight': 'float',
'fontItalic': 'bool',
'fontColor': 'str',
'fontName': 'str',
'forceNewField': 'bool',
'fontUnderline': 'bool',
'page': 'int',
'locationWidth': 'float',
'locationX': 'float',
'fontBold': 'bool',
'fontSize': 'float',
'locationY': 'float'
}
self.locationHeight = None # float
self.fontItalic = None # bool
self.fontColor = None # str
self.fontName = None # str
self.forceNewField = None # bool
self.fontUnderline = None # bool
self.page = None # int
self.locationWidth = None # float
self.locationX = None # float
self.fontBold = None # bool
self.fontSize = None # float
self.locationY = None # float
#!/usr/bin/env python
"""
Copyright 2012 GroupDocs.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
"""
class SignatureFormFieldResponse:
"""
NOTE: This class is auto generated by the swagger code generator program.
Do not edit the class manually."""
def __init__(self):
self.swaggerTypes = {
'result': 'SignatureFormFieldResult',
'status': 'str',
'error_message': 'str'
}
self.result = None # SignatureFormFieldResult
self.status = None # str
self.error_message = None # str
#!/usr/bin/env python
"""
Copyright 2012 GroupDocs.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
"""
class SignatureFormFieldResult:
"""
NOTE: This class is auto generated by the swagger code generator program.
Do not edit the class manually."""
def __init__(self):
self.swaggerTypes = {
'field': 'SignatureFormFieldInfo',
'formId': 'str',
'participantId': 'str',
'documentId': 'str'
}
self.field = None # SignatureFormFieldInfo
self.formId = None # str
self.participantId = None # str
self.documentId = None # str
#!/usr/bin/env python
"""
Copyright 2012 GroupDocs.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
"""
class SignatureFormFieldSettings:
"""
NOTE: This class is auto generated by the swagger code generator program.
Do not edit the class manually."""
def __init__(self):
self.swaggerTypes = {
'locationHeight': 'float',
'fontName': 'str',
'fontColor': 'str',
'forceNewField': 'bool',
'regularExpression': 'str',
'mandatory': 'bool',
'locationX': 'float',
'fontBold': 'bool',
'fontSize': 'float',
'locationY': 'float',
'acceptableValues': 'str',
'fontItalic': 'bool',
'fontUnderline': 'bool',
'order': 'int',
'page': 'int',
'name': 'str',
'locationWidth': 'float',
'defaultValue': 'str',
'tooltip': 'str'
}
self.locationHeight = None # float
self.fontName = None # str
self.fontColor = None # str
self.forceNewField = None # bool
self.regularExpression = None # str
self.mandatory = None # bool
self.locationX = None # float
self.fontBold = None # bool
self.fontSize = None # float
self.locationY = None # float
self.acceptableValues = None # str
self.fontItalic = None # bool
self.fontUnderline = None # bool
self.order = None # int
self.page = None # int
self.name = None # str
self.locationWidth = None # float
self.defaultValue = None # str
self.tooltip = None # str
GroupDocs Python SDK |Build Status|_
####################################
Requirements
************
- SDK requires Python 2.6 (or later). If you need Python 3 version of
SDK please go to `groupdocs-python3`_
Installation
************
You can use the `Pip`_ to download and install SDK. GroupDocs SDK is now
in `PyPi`_.
Usage Example
*************
::
apiClient = ApiClient(GroupDocsRequestSigner(privateKey))
api = AntApi(apiClient)
response = api.ListAnnotations(userId, fileId)
`Sign, Manage, Annotate, Assemble, Compare and Convert Documents with GroupDocs`_
*********************************************************************************
1. `Sign documents online with GroupDocs Signature`_
2. `PDF, Word and Image Annotation with GroupDocs Annotation`_
3. `Online DOC, DOCX, PPT Document Comparison with GroupDocs
Comparison`_
4. `Online Document Management with GroupDocs Dashboard`_
5. `Doc to PDF, Doc to Docx, PPT to PDF, and other Document Conversions
with GroupDocs Viewer`_
6. `Online Document Automation with GroupDocs Assembly`_
License
*******
::
Copyright 2012 GroupDocs.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
.. _Build Status: http://travis-ci.org/groupdocs/groupdocs-python
.. _groupdocs-python3: https://github.com/groupdocs/groupdocs-python3
.. _Pip: http://www.pip-installer.org/
.. _PyPi: http://pypi.python.org/pypi/groupdocs-python
.. _Sign, Manage, Annotate, Assemble, Compare and Convert Documents with GroupDocs: http://groupdocs.com
.. _Sign documents online with GroupDocs Signature: http://groupdocs.com/apps/signature
.. _PDF, Word and Image Annotation with GroupDocs Annotation: http://groupdocs.com/apps/annotation
.. _Online DOC, DOCX, PPT Document Comparison with GroupDocs Comparison: http://groupdocs.com/apps/comparison
.. _Online Document Management with GroupDocs Dashboard: http://groupdocs.com/apps/dashboard
.. _Doc to PDF, Doc to Docx, PPT to PDF, and other Document Conversions with GroupDocs Viewer: http://groupdocs.com/apps/viewer
.. _Online Document Automation with GroupDocs Assembly: http://groupdocs.com/apps/assembly
.. |Build Status| image:: https://secure.travis-ci.org/groupdocs/groupdocs-python.png
from distutils.core import setup
if __name__ == '__main__':
import sys
setup(
name = 'groupdocs-python',
version = '1.2',
author = "GroupDocs Team",
author_email = "support@groupdocs.com",
description = "A Python interface to the GroupDocs API",
keywords = "groupdocs, document management, viewer, annotation, signature",
license = "Apache License (2.0)",
long_description = open('README.rst').read(),
platforms = 'any',
packages = ['groupdocs', 'groupdocs.models'],
url = "http://groupdocs.com/",
download_url = "https://github.com/groupdocs/groupdocs-python",
classifiers = [
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"Operating System :: OS Independent",
"Programming Language :: Python :: 2.6",
"Programming Language :: Python :: 2.7",
"Topic :: Software Development :: Libraries :: Python Modules",
"License :: OSI Approved :: Apache Software License"
],
data_files=[('', ['README.rst'])]
)
+164
-60
#!/usr/bin/env python
"""
WordAPI.py
Copyright 2012 Wordnik, Inc.
Copyright 2012 GroupDocs.

@@ -24,10 +23,20 @@ Licensed under the Apache License, Version 2.0 (the "License");

from models import *
from groupdocs.FileStream import FileStream
from groupdocs.ApiClient import ApiException
class AntApi(object):
def __init__(self, apiClient):
self.apiClient = apiClient
self.apiClient = apiClient
self.__basePath = "https://api.groupdocs.com/v2.0"
@property
def basePath(self):
return self.__basePath
@basePath.setter
def basePath(self, value):
self.__basePath = value
def CreateAnnotation(self, userId, fileId, body, **kwargs):

@@ -43,3 +52,4 @@ """Create annotation

"""
if( userId == None or fileId == None or body == None ):
raise ApiException(400, "missing required parameters")
allParams = ['userId', 'fileId', 'body']

@@ -70,4 +80,3 @@

postData = (params['body'] if 'body' in params else None)
response = self.apiClient.callAPI(resourcePath, method, queryParams,
response = self.apiClient.callAPI(self.basePath, resourcePath, method, queryParams,
postData, headerParams)

@@ -91,3 +100,4 @@

"""
if( userId == None or fileId == None ):
raise ApiException(400, "missing required parameters")
allParams = ['userId', 'fileId']

@@ -118,4 +128,3 @@

postData = (params['body'] if 'body' in params else None)
response = self.apiClient.callAPI(resourcePath, method, queryParams,
response = self.apiClient.callAPI(self.basePath, resourcePath, method, queryParams,
postData, headerParams)

@@ -139,3 +148,4 @@

"""
if( userId == None or annotationId == None ):
raise ApiException(400, "missing required parameters")
allParams = ['userId', 'annotationId']

@@ -166,4 +176,3 @@

postData = (params['body'] if 'body' in params else None)
response = self.apiClient.callAPI(resourcePath, method, queryParams,
response = self.apiClient.callAPI(self.basePath, resourcePath, method, queryParams,
postData, headerParams)

@@ -184,7 +193,8 @@

annotationId, str: Annotation ID (required)
body, AnnotationReplyInfo: Message (required)
body, AnnotationReplyInfo: Reply (required)
Returns: AddReplyResponse
"""
if( userId == None or annotationId == None or body == None ):
raise ApiException(400, "missing required parameters")
allParams = ['userId', 'annotationId', 'body']

@@ -215,4 +225,3 @@

postData = (params['body'] if 'body' in params else None)
response = self.apiClient.callAPI(resourcePath, method, queryParams,
response = self.apiClient.callAPI(self.basePath, resourcePath, method, queryParams,
postData, headerParams)

@@ -237,3 +246,4 @@

"""
if( userId == None or replyGuid == None or body == None ):
raise ApiException(400, "missing required parameters")
allParams = ['userId', 'replyGuid', 'body']

@@ -264,4 +274,3 @@

postData = (params['body'] if 'body' in params else None)
response = self.apiClient.callAPI(resourcePath, method, queryParams,
response = self.apiClient.callAPI(self.basePath, resourcePath, method, queryParams,
postData, headerParams)

@@ -285,3 +294,4 @@

"""
if( userId == None or replyGuid == None ):
raise ApiException(400, "missing required parameters")
allParams = ['userId', 'replyGuid']

@@ -312,4 +322,3 @@

postData = (params['body'] if 'body' in params else None)
response = self.apiClient.callAPI(resourcePath, method, queryParams,
response = self.apiClient.callAPI(self.basePath, resourcePath, method, queryParams,
postData, headerParams)

@@ -334,3 +343,4 @@

"""
if( userId == None or annotationId == None or after == None ):
raise ApiException(400, "missing required parameters")
allParams = ['userId', 'annotationId', 'after']

@@ -346,2 +356,5 @@

resourcePath = '/ant/{userId}/annotations/{annotationId}/replies?after={after}'.replace('*', '')
pos = resourcePath.find("?")
if pos != -1:
resourcePath = resourcePath[0:pos]
resourcePath = resourcePath.replace('{format}', 'json')

@@ -353,2 +366,4 @@ method = 'GET'

if ('after' in params):
queryParams['after'] = self.apiClient.toPathValue(params['after'])
if ('userId' in params):

@@ -362,9 +377,4 @@ replacement = str(self.apiClient.toPathValue(params['userId']))

replacement)
if ('after' in params):
replacement = str(self.apiClient.toPathValue(params['after']))
resourcePath = resourcePath.replace('{' + 'after' + '}',
replacement)
postData = (params['body'] if 'body' in params else None)
response = self.apiClient.callAPI(resourcePath, method, queryParams,
response = self.apiClient.callAPI(self.basePath, resourcePath, method, queryParams,
postData, headerParams)

@@ -390,3 +400,4 @@

"""
if( userId == None or fileId == None or version == None ):
raise ApiException(400, "missing required parameters")
allParams = ['userId', 'fileId', 'version', 'body']

@@ -421,4 +432,3 @@

postData = (params['body'] if 'body' in params else None)
response = self.apiClient.callAPI(resourcePath, method, queryParams,
response = self.apiClient.callAPI(self.basePath, resourcePath, method, queryParams,
postData, headerParams)

@@ -442,3 +452,4 @@

"""
if( userId == None or fileId == None ):
raise ApiException(400, "missing required parameters")
allParams = ['userId', 'fileId']

@@ -469,4 +480,3 @@

postData = (params['body'] if 'body' in params else None)
response = self.apiClient.callAPI(resourcePath, method, queryParams,
response = self.apiClient.callAPI(self.basePath, resourcePath, method, queryParams,
postData, headerParams)

@@ -487,7 +497,8 @@

fileId, str: File ID (required)
body, str: Collaborator (optional)
body, ReviewerInfo: Reviewer Info (optional)
Returns: AddCollaboratorResponse
"""
if( userId == None or fileId == None ):
raise ApiException(400, "missing required parameters")
allParams = ['userId', 'fileId', 'body']

@@ -518,4 +529,3 @@

postData = (params['body'] if 'body' in params else None)
response = self.apiClient.callAPI(resourcePath, method, queryParams,
response = self.apiClient.callAPI(self.basePath, resourcePath, method, queryParams,
postData, headerParams)

@@ -538,3 +548,4 @@

"""
if( userId == None ):
raise ApiException(400, "missing required parameters")
allParams = ['userId']

@@ -561,4 +572,3 @@

postData = (params['body'] if 'body' in params else None)
response = self.apiClient.callAPI(resourcePath, method, queryParams,
response = self.apiClient.callAPI(self.basePath, resourcePath, method, queryParams,
postData, headerParams)

@@ -578,8 +588,10 @@

userId, str: User GUID (required)
body, List[ReviewerContactInfo]: Reviewer Contacts Array (optional)
Returns: GetReviewerContactsResponse
"""
if( userId == None ):
raise ApiException(400, "missing required parameters")
allParams = ['userId', 'body']
allParams = ['userId']
params = locals()

@@ -604,4 +616,3 @@ for (key, val) in params['kwargs'].iteritems():

postData = (params['body'] if 'body' in params else None)
response = self.apiClient.callAPI(resourcePath, method, queryParams,
response = self.apiClient.callAPI(self.basePath, resourcePath, method, queryParams,
postData, headerParams)

@@ -626,3 +637,4 @@

"""
if( userId == None or annotationId == None or body == None ):
raise ApiException(400, "missing required parameters")
allParams = ['userId', 'annotationId', 'body']

@@ -653,4 +665,3 @@

postData = (params['body'] if 'body' in params else None)
response = self.apiClient.callAPI(resourcePath, method, queryParams,
response = self.apiClient.callAPI(self.basePath, resourcePath, method, queryParams,
postData, headerParams)

@@ -675,3 +686,4 @@

"""
if( userId == None or annotationId == None or body == None ):
raise ApiException(400, "missing required parameters")
allParams = ['userId', 'annotationId', 'body']

@@ -702,4 +714,3 @@

postData = (params['body'] if 'body' in params else None)
response = self.apiClient.callAPI(resourcePath, method, queryParams,
response = self.apiClient.callAPI(self.basePath, resourcePath, method, queryParams,
postData, headerParams)

@@ -714,2 +725,49 @@

def MoveAnnotationMarker(self, userId, annotationId, body, **kwargs):
"""Move Annotation Marker
Args:
userId, str: User GUID (required)
annotationId, str: Annotation ID (required)
body, Point: position (required)
Returns: MoveAnnotationResponse
"""
if( userId == None or annotationId == None or body == None ):
raise ApiException(400, "missing required parameters")
allParams = ['userId', 'annotationId', 'body']
params = locals()
for (key, val) in params['kwargs'].iteritems():
if key not in allParams:
raise TypeError("Got an unexpected keyword argument '%s' to method MoveAnnotationMarker" % key)
params[key] = val
del params['kwargs']
resourcePath = '/ant/{userId}/annotations/{annotationId}/markerPosition'.replace('*', '')
resourcePath = resourcePath.replace('{format}', 'json')
method = 'PUT'
queryParams = {}
headerParams = {}
if ('userId' in params):
replacement = str(self.apiClient.toPathValue(params['userId']))
resourcePath = resourcePath.replace('{' + 'userId' + '}',
replacement)
if ('annotationId' in params):
replacement = str(self.apiClient.toPathValue(params['annotationId']))
resourcePath = resourcePath.replace('{' + 'annotationId' + '}',
replacement)
postData = (params['body'] if 'body' in params else None)
response = self.apiClient.callAPI(self.basePath, resourcePath, method, queryParams,
postData, headerParams)
if not response:
return None
responseObject = self.apiClient.deserialize(response, 'MoveAnnotationResponse')
return responseObject
def SetReviewerRights(self, userId, fileId, body, **kwargs):

@@ -723,5 +781,6 @@ """Set Reviewer Rights

Returns: SetDocumentRightsResponse
Returns: SetReviewerRightsResponse
"""
if( userId == None or fileId == None or body == None ):
raise ApiException(400, "missing required parameters")
allParams = ['userId', 'fileId', 'body']

@@ -752,4 +811,49 @@

postData = (params['body'] if 'body' in params else None)
response = self.apiClient.callAPI(self.basePath, resourcePath, method, queryParams,
postData, headerParams)
response = self.apiClient.callAPI(resourcePath, method, queryParams,
if not response:
return None
responseObject = self.apiClient.deserialize(response, 'SetReviewerRightsResponse')
return responseObject
def GetSharedLinkAccessRights(self, userId, fileId, **kwargs):
"""Get Shared Link Access Rights
Args:
userId, str: User GUID (required)
fileId, str: File ID (required)
Returns: GetSharedLinkAccessRightsResponse
"""
if( userId == None or fileId == None ):
raise ApiException(400, "missing required parameters")
allParams = ['userId', 'fileId']
params = locals()
for (key, val) in params['kwargs'].iteritems():
if key not in allParams:
raise TypeError("Got an unexpected keyword argument '%s' to method GetSharedLinkAccessRights" % key)
params[key] = val
del params['kwargs']
resourcePath = '/ant/{userId}/files/{fileId}/sharedLinkAccessRights'.replace('*', '')
resourcePath = resourcePath.replace('{format}', 'json')
method = 'GET'
queryParams = {}
headerParams = {}
if ('userId' in params):
replacement = str(self.apiClient.toPathValue(params['userId']))
resourcePath = resourcePath.replace('{' + 'userId' + '}',
replacement)
if ('fileId' in params):
replacement = str(self.apiClient.toPathValue(params['fileId']))
resourcePath = resourcePath.replace('{' + 'fileId' + '}',
replacement)
postData = (params['body'] if 'body' in params else None)
response = self.apiClient.callAPI(self.basePath, resourcePath, method, queryParams,
postData, headerParams)

@@ -760,3 +864,3 @@

responseObject = self.apiClient.deserialize(response, 'SetDocumentRightsResponse')
responseObject = self.apiClient.deserialize(response, 'GetSharedLinkAccessRightsResponse')
return responseObject

@@ -775,3 +879,4 @@

"""
if( userId == None or fileId == None or body == None ):
raise ApiException(400, "missing required parameters")
allParams = ['userId', 'fileId', 'body']

@@ -802,4 +907,3 @@

postData = (params['body'] if 'body' in params else None)
response = self.apiClient.callAPI(resourcePath, method, queryParams,
response = self.apiClient.callAPI(self.basePath, resourcePath, method, queryParams,
postData, headerParams)

@@ -806,0 +910,0 @@

#!/usr/bin/env python
"""
WordAPI.py
Copyright 2012 Wordnik, Inc.
Copyright 2012 GroupDocs.

@@ -24,10 +23,20 @@ Licensed under the Apache License, Version 2.0 (the "License");

from models import *
from groupdocs.FileStream import FileStream
from groupdocs.ApiClient import ApiException
class AsyncApi(object):
def __init__(self, apiClient):
self.apiClient = apiClient
self.apiClient = apiClient
self.__basePath = "https://api.groupdocs.com/v2.0"
@property
def basePath(self):
return self.__basePath
@basePath.setter
def basePath(self, value):
self.__basePath = value
def GetJob(self, userId, jobId, **kwargs):

@@ -42,3 +51,4 @@ """Get job

"""
if( userId == None or jobId == None ):
raise ApiException(400, "missing required parameters")
allParams = ['userId', 'jobId']

@@ -69,4 +79,3 @@

postData = (params['body'] if 'body' in params else None)
response = self.apiClient.callAPI(resourcePath, method, queryParams,
response = self.apiClient.callAPI(self.basePath, resourcePath, method, queryParams,
postData, headerParams)

@@ -90,3 +99,4 @@

"""
if( userId == None or jobId == None ):
raise ApiException(400, "missing required parameters")
allParams = ['userId', 'jobId']

@@ -117,4 +127,3 @@

postData = (params['body'] if 'body' in params else None)
response = self.apiClient.callAPI(resourcePath, method, queryParams,
response = self.apiClient.callAPI(self.basePath, resourcePath, method, queryParams,
postData, headerParams)

@@ -129,3 +138,56 @@

def GetJobDocuments(self, userId, jobId, format, **kwargs):
def GetJobResources(self, userId, statusIds, **kwargs):
"""Get job resources
Args:
userId, str: User GUID (required)
statusIds, str: Comma separated job status identifiers (required)
actions, str: Actions (optional)
excludedActions, str: Excluded actions (optional)
Returns: GetJobResourcesResponse
"""
if( userId == None or statusIds == None ):
raise ApiException(400, "missing required parameters")
allParams = ['userId', 'statusIds', 'actions', 'excludedActions']
params = locals()
for (key, val) in params['kwargs'].iteritems():
if key not in allParams:
raise TypeError("Got an unexpected keyword argument '%s' to method GetJobResources" % key)
params[key] = val
del params['kwargs']
resourcePath = '/async/{userId}/jobs/resources?statusIds={statusIds}&actions={actions}&excluded_actions={excludedActions}'.replace('*', '')
pos = resourcePath.find("?")
if pos != -1:
resourcePath = resourcePath[0:pos]
resourcePath = resourcePath.replace('{format}', 'json')
method = 'GET'
queryParams = {}
headerParams = {}
if ('statusIds' in params):
queryParams['statusIds'] = self.apiClient.toPathValue(params['statusIds'])
if ('actions' in params):
queryParams['actions'] = self.apiClient.toPathValue(params['actions'])
if ('excludedActions' in params):
queryParams['excluded_actions'] = self.apiClient.toPathValue(params['excludedActions'])
if ('userId' in params):
replacement = str(self.apiClient.toPathValue(params['userId']))
resourcePath = resourcePath.replace('{' + 'userId' + '}',
replacement)
postData = (params['body'] if 'body' in params else None)
response = self.apiClient.callAPI(self.basePath, resourcePath, method, queryParams,
postData, headerParams)
if not response:
return None
responseObject = self.apiClient.deserialize(response, 'GetJobResourcesResponse')
return responseObject
def GetJobDocuments(self, userId, jobId, **kwargs):
"""Get job documents

@@ -140,3 +202,4 @@

"""
if( userId == None or jobId == None ):
raise ApiException(400, "missing required parameters")
allParams = ['userId', 'jobId', 'format']

@@ -152,2 +215,5 @@

resourcePath = '/async/{userId}/jobs/{jobId}/documents?format={format}'.replace('*', '')
pos = resourcePath.find("?")
if pos != -1:
resourcePath = resourcePath[0:pos]
resourcePath = resourcePath.replace('{format}', 'json')

@@ -159,2 +225,4 @@ method = 'GET'

if ('format' in params):
queryParams['format'] = self.apiClient.toPathValue(params['format'])
if ('userId' in params):

@@ -168,9 +236,4 @@ replacement = str(self.apiClient.toPathValue(params['userId']))

replacement)
if ('format' in params):
replacement = str(self.apiClient.toPathValue(params['format']))
resourcePath = resourcePath.replace('{' + 'format' + '}',
replacement)
postData = (params['body'] if 'body' in params else None)
response = self.apiClient.callAPI(resourcePath, method, queryParams,
response = self.apiClient.callAPI(self.basePath, resourcePath, method, queryParams,
postData, headerParams)

@@ -194,3 +257,4 @@

"""
if( userId == None or body == None ):
raise ApiException(400, "missing required parameters")
allParams = ['userId', 'body']

@@ -217,4 +281,3 @@

postData = (params['body'] if 'body' in params else None)
response = self.apiClient.callAPI(resourcePath, method, queryParams,
response = self.apiClient.callAPI(self.basePath, resourcePath, method, queryParams,
postData, headerParams)

@@ -238,3 +301,4 @@

"""
if( userId == None or jobGuid == None ):
raise ApiException(400, "missing required parameters")
allParams = ['userId', 'jobGuid']

@@ -265,4 +329,3 @@

postData = (params['body'] if 'body' in params else None)
response = self.apiClient.callAPI(resourcePath, method, queryParams,
response = self.apiClient.callAPI(self.basePath, resourcePath, method, queryParams,
postData, headerParams)

@@ -277,3 +340,3 @@

def AddJobDocument(self, userId, jobId, fileId, checkOwnership, formats, **kwargs):
def AddJobDocument(self, userId, jobId, fileId, checkOwnership, **kwargs):
"""Add job document

@@ -290,3 +353,4 @@

"""
if( userId == None or jobId == None or fileId == None or checkOwnership == None ):
raise ApiException(400, "missing required parameters")
allParams = ['userId', 'jobId', 'fileId', 'checkOwnership', 'formats']

@@ -301,3 +365,6 @@

resourcePath = '/async/{userId}/jobs/{jobId}/files/{fileId}?check_ownership={checkOwnership}&out_formats={formats}'.replace('*', '')
resourcePath = '/async/{userId}/jobs/{jobId}/files/{fileId}?check_ownership={checkOwnership}&out_formats={formats}'.replace('*', '')
pos = resourcePath.find("?")
if pos != -1:
resourcePath = resourcePath[0:pos]
resourcePath = resourcePath.replace('{format}', 'json')

@@ -309,2 +376,6 @@ method = 'PUT'

if ('checkOwnership' in params):
queryParams['check_ownership'] = self.apiClient.toPathValue(params['checkOwnership'])
if ('formats' in params):
queryParams['out_formats'] = self.apiClient.toPathValue(params['formats'])
if ('userId' in params):

@@ -322,13 +393,4 @@ replacement = str(self.apiClient.toPathValue(params['userId']))

replacement)
if ('checkOwnership' in params):
replacement = str(self.apiClient.toPathValue(params['checkOwnership']))
resourcePath = resourcePath.replace('{' + 'checkOwnership' + '}',
replacement)
if ('formats' in params):
replacement = str(self.apiClient.toPathValue(params['formats']))
resourcePath = resourcePath.replace('{' + 'formats' + '}',
replacement)
postData = (params['body'] if 'body' in params else None)
response = self.apiClient.callAPI(resourcePath, method, queryParams,
response = self.apiClient.callAPI(self.basePath, resourcePath, method, queryParams,
postData, headerParams)

@@ -353,3 +415,4 @@

"""
if( userId == None or jobGuid == None or documentId == None ):
raise ApiException(400, "missing required parameters")
allParams = ['userId', 'jobGuid', 'documentId']

@@ -384,4 +447,3 @@

postData = (params['body'] if 'body' in params else None)
response = self.apiClient.callAPI(resourcePath, method, queryParams,
response = self.apiClient.callAPI(self.basePath, resourcePath, method, queryParams,
postData, headerParams)

@@ -396,3 +458,3 @@

def AddJobDocumentUrl(self, userId, jobId, absoluteUrl, formats, **kwargs):
def AddJobDocumentUrl(self, userId, jobId, absoluteUrl, **kwargs):
"""Add job document url

@@ -408,3 +470,4 @@

"""
if( userId == None or jobId == None or absoluteUrl == None ):
raise ApiException(400, "missing required parameters")
allParams = ['userId', 'jobId', 'absoluteUrl', 'formats']

@@ -419,3 +482,6 @@

resourcePath = '/async/{userId}/jobs/{jobId}/urls?absolute_url={absoluteUrl}&out_formats={formats}'.replace('*', '')
resourcePath = '/async/{userId}/jobs/{jobId}/urls?absolute_url={absoluteUrl}&out_formats={formats}'.replace('*', '')
pos = resourcePath.find("?")
if pos != -1:
resourcePath = resourcePath[0:pos]
resourcePath = resourcePath.replace('{format}', 'json')

@@ -427,2 +493,6 @@ method = 'PUT'

if ('absoluteUrl' in params):
queryParams['absolute_url'] = self.apiClient.toPathValue(params['absoluteUrl'])
if ('formats' in params):
queryParams['out_formats'] = self.apiClient.toPathValue(params['formats'])
if ('userId' in params):

@@ -436,13 +506,4 @@ replacement = str(self.apiClient.toPathValue(params['userId']))

replacement)
if ('absoluteUrl' in params):
replacement = str(self.apiClient.toPathValue(params['absoluteUrl']))
resourcePath = resourcePath.replace('{' + 'absoluteUrl' + '}',
replacement)
if ('formats' in params):
replacement = str(self.apiClient.toPathValue(params['formats']))
resourcePath = resourcePath.replace('{' + 'formats' + '}',
replacement)
postData = (params['body'] if 'body' in params else None)
response = self.apiClient.callAPI(resourcePath, method, queryParams,
response = self.apiClient.callAPI(self.basePath, resourcePath, method, queryParams,
postData, headerParams)

@@ -467,3 +528,4 @@

"""
if( userId == None or jobId == None or body == None ):
raise ApiException(400, "missing required parameters")
allParams = ['userId', 'jobId', 'body']

@@ -494,4 +556,3 @@

postData = (params['body'] if 'body' in params else None)
response = self.apiClient.callAPI(resourcePath, method, queryParams,
response = self.apiClient.callAPI(self.basePath, resourcePath, method, queryParams,
postData, headerParams)

@@ -506,3 +567,3 @@

def GetJobs(self, userId, pageIndex, pageSize, datetime, status, actions, excludedActions, **kwargs):
def GetJobs(self, userId, **kwargs):
"""Get jobs

@@ -515,3 +576,3 @@

datetime, str: Date (optional)
status, str: Status (optional)
statusIds, str: Comma separated status identifiers (optional)
actions, str: Actions (optional)

@@ -522,5 +583,6 @@ excludedActions, str: Excluded actions (optional)

"""
if( userId == None ):
raise ApiException(400, "missing required parameters")
allParams = ['userId', 'pageIndex', 'pageSize', 'datetime', 'statusIds', 'actions', 'excludedActions']
allParams = ['userId', 'pageIndex', 'pageSize', 'datetime', 'status', 'actions', 'excludedActions']
params = locals()

@@ -533,3 +595,6 @@ for (key, val) in params['kwargs'].iteritems():

resourcePath = '/async/{userId}/jobs?page={pageIndex}&count={pageSize}&date={date}&status={status}&actions={actions}&excluded_actions={excludedActions}'.replace('*', '')
resourcePath = '/async/{userId}/jobs?page={pageIndex}&count={pageSize}&date={date}&statusIds={statusIds}&actions={actions}&excluded_actions={excludedActions}'.replace('*', '')
pos = resourcePath.find("?")
if pos != -1:
resourcePath = resourcePath[0:pos]
resourcePath = resourcePath.replace('{format}', 'json')

@@ -541,33 +606,20 @@ method = 'GET'

if ('userId' in params):
replacement = str(self.apiClient.toPathValue(params['userId']))
resourcePath = resourcePath.replace('{' + 'userId' + '}',
replacement)
if ('pageIndex' in params):
replacement = str(self.apiClient.toPathValue(params['pageIndex']))
resourcePath = resourcePath.replace('{' + 'pageIndex' + '}',
replacement)
queryParams['page'] = self.apiClient.toPathValue(params['pageIndex'])
if ('pageSize' in params):
replacement = str(self.apiClient.toPathValue(params['pageSize']))
resourcePath = resourcePath.replace('{' + 'pageSize' + '}',
replacement)
queryParams['count'] = self.apiClient.toPathValue(params['pageSize'])
if ('datetime' in params):
replacement = str(self.apiClient.toPathValue(params['datetime']))
resourcePath = resourcePath.replace('{' + 'date' + '}',
replacement)
if ('status' in params):
replacement = str(self.apiClient.toPathValue(params['status']))
resourcePath = resourcePath.replace('{' + 'status' + '}',
replacement)
queryParams['date'] = self.apiClient.toPathValue(params['datetime'])
if ('statusIds' in params):
queryParams['statusIds'] = self.apiClient.toPathValue(params['statusIds'])
if ('actions' in params):
replacement = str(self.apiClient.toPathValue(params['actions']))
resourcePath = resourcePath.replace('{' + 'actions' + '}',
replacement)
queryParams['actions'] = self.apiClient.toPathValue(params['actions'])
if ('excludedActions' in params):
replacement = str(self.apiClient.toPathValue(params['excludedActions']))
resourcePath = resourcePath.replace('{' + 'excludedActions' + '}',
queryParams['excluded_actions'] = self.apiClient.toPathValue(params['excludedActions'])
if ('userId' in params):
replacement = str(self.apiClient.toPathValue(params['userId']))
resourcePath = resourcePath.replace('{' + 'userId' + '}',
replacement)
postData = (params['body'] if 'body' in params else None)
response = self.apiClient.callAPI(resourcePath, method, queryParams,
response = self.apiClient.callAPI(self.basePath, resourcePath, method, queryParams,
postData, headerParams)

@@ -582,3 +634,3 @@

def GetJobsDocuments(self, userId, pageIndex, pageSize, actions, excludedActions, orderBy, orderAsc, **kwargs):
def GetJobsDocuments(self, userId, **kwargs):
"""Get jobs documents

@@ -597,3 +649,4 @@

"""
if( userId == None ):
raise ApiException(400, "missing required parameters")
allParams = ['userId', 'pageIndex', 'pageSize', 'actions', 'excludedActions', 'orderBy', 'orderAsc']

@@ -608,3 +661,6 @@

resourcePath = '/async/{userId}/jobs/documents?page={pageIndex}&count={pageSize}&actions={actions}&excluded_actions={excludedActions}&order_by={orderBy}&order_asc={orderAsc}'.replace('*', '')
resourcePath = '/async/{userId}/jobs/documents?page={pageIndex}&count={pageSize}&actions={actions}&excluded_actions={excludedActions}&order_by={orderBy}&order_asc={orderAsc}'.replace('*', '')
pos = resourcePath.find("?")
if pos != -1:
resourcePath = resourcePath[0:pos]
resourcePath = resourcePath.replace('{format}', 'json')

@@ -616,33 +672,20 @@ method = 'GET'

if ('userId' in params):
replacement = str(self.apiClient.toPathValue(params['userId']))
resourcePath = resourcePath.replace('{' + 'userId' + '}',
replacement)
if ('pageIndex' in params):
replacement = str(self.apiClient.toPathValue(params['pageIndex']))
resourcePath = resourcePath.replace('{' + 'pageIndex' + '}',
replacement)
queryParams['page'] = self.apiClient.toPathValue(params['pageIndex'])
if ('pageSize' in params):
replacement = str(self.apiClient.toPathValue(params['pageSize']))
resourcePath = resourcePath.replace('{' + 'pageSize' + '}',
replacement)
queryParams['count'] = self.apiClient.toPathValue(params['pageSize'])
if ('actions' in params):
replacement = str(self.apiClient.toPathValue(params['actions']))
resourcePath = resourcePath.replace('{' + 'actions' + '}',
replacement)
queryParams['actions'] = self.apiClient.toPathValue(params['actions'])
if ('excludedActions' in params):
replacement = str(self.apiClient.toPathValue(params['excludedActions']))
resourcePath = resourcePath.replace('{' + 'excludedActions' + '}',
replacement)
queryParams['excluded_actions'] = self.apiClient.toPathValue(params['excludedActions'])
if ('orderBy' in params):
replacement = str(self.apiClient.toPathValue(params['orderBy']))
resourcePath = resourcePath.replace('{' + 'orderBy' + '}',
replacement)
queryParams['order_by'] = self.apiClient.toPathValue(params['orderBy'])
if ('orderAsc' in params):
replacement = str(self.apiClient.toPathValue(params['orderAsc']))
resourcePath = resourcePath.replace('{' + 'orderAsc' + '}',
queryParams['order_asc'] = self.apiClient.toPathValue(params['orderAsc'])
if ('userId' in params):
replacement = str(self.apiClient.toPathValue(params['userId']))
resourcePath = resourcePath.replace('{' + 'userId' + '}',
replacement)
postData = (params['body'] if 'body' in params else None)
response = self.apiClient.callAPI(resourcePath, method, queryParams,
response = self.apiClient.callAPI(self.basePath, resourcePath, method, queryParams,
postData, headerParams)

@@ -657,3 +700,3 @@

def Convert(self, userId, fileId, targetType, emailResults, description, printScript, callbackUrl, **kwargs):
def Convert(self, userId, fileId, **kwargs):
"""Convert

@@ -669,8 +712,10 @@

callbackUrl, str: Callback url (optional)
checkDocumentOwnership, bool: Check Document Ownership (optional)
Returns: ConvertResponse
"""
if( userId == None or fileId == None ):
raise ApiException(400, "missing required parameters")
allParams = ['userId', 'fileId', 'targetType', 'emailResults', 'description', 'printScript', 'callbackUrl', 'checkDocumentOwnership']
allParams = ['userId', 'fileId', 'targetType', 'emailResults', 'description', 'printScript', 'callbackUrl']
params = locals()

@@ -683,3 +728,6 @@ for (key, val) in params['kwargs'].iteritems():

resourcePath = '/async/{userId}/files/{fileId}?new_type={targetType}&email_results={emailResults}&new_description={description}&print_script={printScript}&callback={callbackUrl}'.replace('*', '')
resourcePath = '/async/{userId}/files/{fileId}?new_type={targetType}&email_results={emailResults}&new_description={description}&print_script={printScript}&callback={callbackUrl}&checkDocumentOwnership={checkDocumentOwnership}'.replace('*', '')
pos = resourcePath.find("?")
if pos != -1:
resourcePath = resourcePath[0:pos]
resourcePath = resourcePath.replace('{format}', 'json')

@@ -691,2 +739,14 @@ method = 'POST'

if ('targetType' in params):
queryParams['new_type'] = self.apiClient.toPathValue(params['targetType'])
if ('emailResults' in params):
queryParams['email_results'] = self.apiClient.toPathValue(params['emailResults'])
if ('description' in params):
queryParams['new_description'] = self.apiClient.toPathValue(params['description'])
if ('printScript' in params):
queryParams['print_script'] = self.apiClient.toPathValue(params['printScript'])
if ('callbackUrl' in params):
queryParams['callback'] = self.apiClient.toPathValue(params['callbackUrl'])
if ('checkDocumentOwnership' in params):
queryParams['checkDocumentOwnership'] = self.apiClient.toPathValue(params['checkDocumentOwnership'])
if ('userId' in params):

@@ -700,25 +760,4 @@ replacement = str(self.apiClient.toPathValue(params['userId']))

replacement)
if ('targetType' in params):
replacement = str(self.apiClient.toPathValue(params['targetType']))
resourcePath = resourcePath.replace('{' + 'targetType' + '}',
replacement)
if ('emailResults' in params):
replacement = str(self.apiClient.toPathValue(params['emailResults']))
resourcePath = resourcePath.replace('{' + 'emailResults' + '}',
replacement)
if ('description' in params):
replacement = str(self.apiClient.toPathValue(params['description']))
resourcePath = resourcePath.replace('{' + 'description' + '}',
replacement)
if ('printScript' in params):
replacement = str(self.apiClient.toPathValue(params['printScript']))
resourcePath = resourcePath.replace('{' + 'printScript' + '}',
replacement)
if ('callbackUrl' in params):
replacement = str(self.apiClient.toPathValue(params['callbackUrl']))
resourcePath = resourcePath.replace('{' + 'callbackUrl' + '}',
replacement)
postData = (params['body'] if 'body' in params else None)
response = self.apiClient.callAPI(resourcePath, method, queryParams,
response = self.apiClient.callAPI(self.basePath, resourcePath, method, queryParams,
postData, headerParams)

@@ -725,0 +764,0 @@

#!/usr/bin/env python
"""
WordAPI.py
Copyright 2012 Wordnik, Inc.
Copyright 2012 GroupDocs.

@@ -24,11 +23,21 @@ Licensed under the Apache License, Version 2.0 (the "License");

from models import *
from groupdocs.FileStream import FileStream
from groupdocs.ApiClient import ApiException
class ComparisonApi(object):
def __init__(self, apiClient):
self.apiClient = apiClient
self.apiClient = apiClient
self.__basePath = "https://api.groupdocs.com/v2.0"
@property
def basePath(self):
return self.__basePath
def DownloadResult(self, userId, resultFileId, format, **kwargs):
@basePath.setter
def basePath(self, value):
self.__basePath = value
def DownloadResult(self, userId, resultFileId, **kwargs):
"""Download comparison result file

@@ -41,5 +50,6 @@

Returns: str
Returns: stream
"""
if( userId == None or resultFileId == None ):
raise ApiException(400, "missing required parameters")
allParams = ['userId', 'resultFileId', 'format']

@@ -54,3 +64,6 @@

resourcePath = '/comparison/{userId}/comparison/download?resultFileId={resultFileId}&format={format}'.replace('*', '')
resourcePath = '/comparison/{userId}/comparison/download?resultFileId={resultFileId}&format={format}'.replace('*', '')
pos = resourcePath.find("?")
if pos != -1:
resourcePath = resourcePath[0:pos]
resourcePath = resourcePath.replace('{format}', 'json')

@@ -62,2 +75,6 @@ method = 'GET'

if ('resultFileId' in params):
queryParams['resultFileId'] = self.apiClient.toPathValue(params['resultFileId'])
if ('format' in params):
queryParams['format'] = self.apiClient.toPathValue(params['format'])
if ('userId' in params):

@@ -67,23 +84,7 @@ replacement = str(self.apiClient.toPathValue(params['userId']))

replacement)
if ('resultFileId' in params):
replacement = str(self.apiClient.toPathValue(params['resultFileId']))
resourcePath = resourcePath.replace('{' + 'resultFileId' + '}',
replacement)
if ('format' in params):
replacement = str(self.apiClient.toPathValue(params['format']))
resourcePath = resourcePath.replace('{' + 'format' + '}',
replacement)
postData = (params['body'] if 'body' in params else None)
response = self.apiClient.callAPI(resourcePath, method, queryParams,
postData, headerParams)
if not response:
return None
responseObject = self.apiClient.deserialize(response, 'str')
return responseObject
return self.apiClient.callAPI(self.basePath, resourcePath, method, queryParams,
postData, headerParams, FileStream)
def Compare(self, userId, sourceFileId, targetFileId, **kwargs):
def Compare(self, userId, sourceFileId, targetFileId, callbackUrl, **kwargs):
"""Compare

@@ -95,8 +96,10 @@

targetFileId, str: Target File GUID (required)
callbackUrl, str: Callback Url (required)
Returns: CompareResponse
"""
if( userId == None or sourceFileId == None or targetFileId == None or callbackUrl == None ):
raise ApiException(400, "missing required parameters")
allParams = ['userId', 'sourceFileId', 'targetFileId', 'callbackUrl']
allParams = ['userId', 'sourceFileId', 'targetFileId']
params = locals()

@@ -109,3 +112,6 @@ for (key, val) in params['kwargs'].iteritems():

resourcePath = '/comparison/{userId}/comparison/compare?source={sourceFileId}&target={targetFileId}'.replace('*', '')
resourcePath = '/comparison/{userId}/comparison/compare?source={sourceFileId}&target={targetFileId}&callback={callbackUrl}'.replace('*', '')
pos = resourcePath.find("?")
if pos != -1:
resourcePath = resourcePath[0:pos]
resourcePath = resourcePath.replace('{format}', 'json')

@@ -117,2 +123,8 @@ method = 'GET'

if ('sourceFileId' in params):
queryParams['source'] = self.apiClient.toPathValue(params['sourceFileId'])
if ('targetFileId' in params):
queryParams['target'] = self.apiClient.toPathValue(params['targetFileId'])
if ('callbackUrl' in params):
queryParams['callback'] = self.apiClient.toPathValue(params['callbackUrl'])
if ('userId' in params):

@@ -122,13 +134,4 @@ replacement = str(self.apiClient.toPathValue(params['userId']))

replacement)
if ('sourceFileId' in params):
replacement = str(self.apiClient.toPathValue(params['sourceFileId']))
resourcePath = resourcePath.replace('{' + 'sourceFileId' + '}',
replacement)
if ('targetFileId' in params):
replacement = str(self.apiClient.toPathValue(params['targetFileId']))
resourcePath = resourcePath.replace('{' + 'targetFileId' + '}',
replacement)
postData = (params['body'] if 'body' in params else None)
response = self.apiClient.callAPI(resourcePath, method, queryParams,
response = self.apiClient.callAPI(self.basePath, resourcePath, method, queryParams,
postData, headerParams)

@@ -152,3 +155,4 @@

"""
if( userId == None or resultFileId == None ):
raise ApiException(400, "missing required parameters")
allParams = ['userId', 'resultFileId']

@@ -164,2 +168,5 @@

resourcePath = '/comparison/{userId}/comparison/changes?resultFileId={resultFileId}'.replace('*', '')
pos = resourcePath.find("?")
if pos != -1:
resourcePath = resourcePath[0:pos]
resourcePath = resourcePath.replace('{format}', 'json')

@@ -171,2 +178,4 @@ method = 'GET'

if ('resultFileId' in params):
queryParams['resultFileId'] = self.apiClient.toPathValue(params['resultFileId'])
if ('userId' in params):

@@ -176,9 +185,4 @@ replacement = str(self.apiClient.toPathValue(params['userId']))

replacement)
if ('resultFileId' in params):
replacement = str(self.apiClient.toPathValue(params['resultFileId']))
resourcePath = resourcePath.replace('{' + 'resultFileId' + '}',
replacement)
postData = (params['body'] if 'body' in params else None)
response = self.apiClient.callAPI(resourcePath, method, queryParams,
response = self.apiClient.callAPI(self.basePath, resourcePath, method, queryParams,
postData, headerParams)

@@ -203,3 +207,4 @@

"""
if( userId == None or resultFileId == None or body == None ):
raise ApiException(400, "missing required parameters")
allParams = ['userId', 'resultFileId', 'body']

@@ -215,2 +220,5 @@

resourcePath = '/comparison/{userId}/comparison/changes?resultFileId={resultFileId}'.replace('*', '')
pos = resourcePath.find("?")
if pos != -1:
resourcePath = resourcePath[0:pos]
resourcePath = resourcePath.replace('{format}', 'json')

@@ -222,2 +230,4 @@ method = 'PUT'

if ('resultFileId' in params):
queryParams['resultFileId'] = self.apiClient.toPathValue(params['resultFileId'])
if ('userId' in params):

@@ -227,9 +237,4 @@ replacement = str(self.apiClient.toPathValue(params['userId']))

replacement)
if ('resultFileId' in params):
replacement = str(self.apiClient.toPathValue(params['resultFileId']))
resourcePath = resourcePath.replace('{' + 'resultFileId' + '}',
replacement)
postData = (params['body'] if 'body' in params else None)
response = self.apiClient.callAPI(resourcePath, method, queryParams,
response = self.apiClient.callAPI(self.basePath, resourcePath, method, queryParams,
postData, headerParams)

@@ -253,3 +258,4 @@

"""
if( userId == None or guid == None ):
raise ApiException(400, "missing required parameters")
allParams = ['userId', 'guid']

@@ -265,2 +271,5 @@

resourcePath = '/comparison/{userId}/comparison/document?guid={guid}'.replace('*', '')
pos = resourcePath.find("?")
if pos != -1:
resourcePath = resourcePath[0:pos]
resourcePath = resourcePath.replace('{format}', 'json')

@@ -272,2 +281,4 @@ method = 'GET'

if ('guid' in params):
queryParams['guid'] = self.apiClient.toPathValue(params['guid'])
if ('userId' in params):

@@ -277,9 +288,4 @@ replacement = str(self.apiClient.toPathValue(params['userId']))

replacement)
if ('guid' in params):
replacement = str(self.apiClient.toPathValue(params['guid']))
resourcePath = resourcePath.replace('{' + 'guid' + '}',
replacement)
postData = (params['body'] if 'body' in params else None)
response = self.apiClient.callAPI(resourcePath, method, queryParams,
response = self.apiClient.callAPI(self.basePath, resourcePath, method, queryParams,
postData, headerParams)

@@ -286,0 +292,0 @@

#!/usr/bin/env python
"""
WordAPI.py
Copyright 2012 Wordnik, Inc.
Copyright 2012 GroupDocs.

@@ -24,11 +23,21 @@ Licensed under the Apache License, Version 2.0 (the "License");

from models import *
from groupdocs.FileStream import FileStream
from groupdocs.ApiClient import ApiException
class DocApi(object):
def __init__(self, apiClient):
self.apiClient = apiClient
self.apiClient = apiClient
self.__basePath = "https://api.groupdocs.com/v2.0"
@property
def basePath(self):
return self.__basePath
def ViewDocument(self, userId, fileId, pageNumber, pageCount, width, quality, usePdf, **kwargs):
@basePath.setter
def basePath(self, value):
self.__basePath = value
def ViewDocument(self, userId, fileId, **kwargs):
"""View Document

@@ -47,3 +56,4 @@

"""
if( userId == None or fileId == None ):
raise ApiException(400, "missing required parameters")
allParams = ['userId', 'fileId', 'pageNumber', 'pageCount', 'width', 'quality', 'usePdf']

@@ -58,3 +68,6 @@

resourcePath = '/doc/{userId}/files/{fileId}/thumbnails?page_number={pageNumber}&page_count={pageCount}&width={width}&quality={quality}&use_pdf={usePdf}'.replace('*', '')
resourcePath = '/doc/{userId}/files/{fileId}/thumbnails?page_number={pageNumber}&page_count={pageCount}&width={width}&quality={quality}&use_pdf={usePdf}'.replace('*', '')
pos = resourcePath.find("?")
if pos != -1:
resourcePath = resourcePath[0:pos]
resourcePath = resourcePath.replace('{format}', 'json')

@@ -66,2 +79,12 @@ method = 'POST'

if ('pageNumber' in params):
queryParams['page_number'] = self.apiClient.toPathValue(params['pageNumber'])
if ('pageCount' in params):
queryParams['page_count'] = self.apiClient.toPathValue(params['pageCount'])
if ('width' in params):
queryParams['width'] = self.apiClient.toPathValue(params['width'])
if ('quality' in params):
queryParams['quality'] = self.apiClient.toPathValue(params['quality'])
if ('usePdf' in params):
queryParams['use_pdf'] = self.apiClient.toPathValue(params['usePdf'])
if ('userId' in params):

@@ -75,25 +98,4 @@ replacement = str(self.apiClient.toPathValue(params['userId']))

replacement)
if ('pageNumber' in params):
replacement = str(self.apiClient.toPathValue(params['pageNumber']))
resourcePath = resourcePath.replace('{' + 'pageNumber' + '}',
replacement)
if ('pageCount' in params):
replacement = str(self.apiClient.toPathValue(params['pageCount']))
resourcePath = resourcePath.replace('{' + 'pageCount' + '}',
replacement)
if ('width' in params):
replacement = str(self.apiClient.toPathValue(params['width']))
resourcePath = resourcePath.replace('{' + 'width' + '}',
replacement)
if ('quality' in params):
replacement = str(self.apiClient.toPathValue(params['quality']))
resourcePath = resourcePath.replace('{' + 'quality' + '}',
replacement)
if ('usePdf' in params):
replacement = str(self.apiClient.toPathValue(params['usePdf']))
resourcePath = resourcePath.replace('{' + 'usePdf' + '}',
replacement)
postData = (params['body'] if 'body' in params else None)
response = self.apiClient.callAPI(resourcePath, method, queryParams,
response = self.apiClient.callAPI(self.basePath, resourcePath, method, queryParams,
postData, headerParams)

@@ -108,3 +110,3 @@

def GetDocumentViews(self, userId, startIndex, pageSize, **kwargs):
def GetDocumentViews(self, userId, **kwargs):
"""Get Document Views

@@ -119,3 +121,4 @@

"""
if( userId == None ):
raise ApiException(400, "missing required parameters")
allParams = ['userId', 'startIndex', 'pageSize']

@@ -130,3 +133,6 @@

resourcePath = '/doc/{userId}/views?page_index={startIndex}&page_size={pageSize}'.replace('*', '')
resourcePath = '/doc/{userId}/views?page_index={startIndex}&page_size={pageSize}'.replace('*', '')
pos = resourcePath.find("?")
if pos != -1:
resourcePath = resourcePath[0:pos]
resourcePath = resourcePath.replace('{format}', 'json')

@@ -138,2 +144,6 @@ method = 'GET'

if ('startIndex' in params):
queryParams['page_index'] = self.apiClient.toPathValue(params['startIndex'])
if ('pageSize' in params):
queryParams['page_size'] = self.apiClient.toPathValue(params['pageSize'])
if ('userId' in params):

@@ -143,13 +153,4 @@ replacement = str(self.apiClient.toPathValue(params['userId']))

replacement)
if ('startIndex' in params):
replacement = str(self.apiClient.toPathValue(params['startIndex']))
resourcePath = resourcePath.replace('{' + 'startIndex' + '}',
replacement)
if ('pageSize' in params):
replacement = str(self.apiClient.toPathValue(params['pageSize']))
resourcePath = resourcePath.replace('{' + 'pageSize' + '}',
replacement)
postData = (params['body'] if 'body' in params else None)
response = self.apiClient.callAPI(resourcePath, method, queryParams,
response = self.apiClient.callAPI(self.basePath, resourcePath, method, queryParams,
postData, headerParams)

@@ -174,3 +175,4 @@

"""
if( userId == None or fileId == None or body == None ):
raise ApiException(400, "missing required parameters")
allParams = ['userId', 'fileId', 'body']

@@ -201,4 +203,3 @@

postData = (params['body'] if 'body' in params else None)
response = self.apiClient.callAPI(resourcePath, method, queryParams,
response = self.apiClient.callAPI(self.basePath, resourcePath, method, queryParams,
postData, headerParams)

@@ -222,3 +223,4 @@

"""
if( userId == None or fileId == None ):
raise ApiException(400, "missing required parameters")
allParams = ['userId', 'fileId']

@@ -249,4 +251,3 @@

postData = (params['body'] if 'body' in params else None)
response = self.apiClient.callAPI(resourcePath, method, queryParams,
response = self.apiClient.callAPI(self.basePath, resourcePath, method, queryParams,
postData, headerParams)

@@ -270,3 +271,4 @@

"""
if( userId == None or folderId == None ):
raise ApiException(400, "missing required parameters")
allParams = ['userId', 'folderId']

@@ -297,4 +299,3 @@

postData = (params['body'] if 'body' in params else None)
response = self.apiClient.callAPI(resourcePath, method, queryParams,
response = self.apiClient.callAPI(self.basePath, resourcePath, method, queryParams,
postData, headerParams)

@@ -319,3 +320,4 @@

"""
if( userId == None or folderId == None or body == None ):
raise ApiException(400, "missing required parameters")
allParams = ['userId', 'folderId', 'body']

@@ -346,4 +348,3 @@

postData = (params['body'] if 'body' in params else None)
response = self.apiClient.callAPI(resourcePath, method, queryParams,
response = self.apiClient.callAPI(self.basePath, resourcePath, method, queryParams,
postData, headerParams)

@@ -367,3 +368,4 @@

"""
if( userId == None or folderId == None ):
raise ApiException(400, "missing required parameters")
allParams = ['userId', 'folderId']

@@ -394,4 +396,3 @@

postData = (params['body'] if 'body' in params else None)
response = self.apiClient.callAPI(resourcePath, method, queryParams,
response = self.apiClient.callAPI(self.basePath, resourcePath, method, queryParams,
postData, headerParams)

@@ -406,3 +407,3 @@

def SetDocumentAccessMode(self, userId, fileId, mode, **kwargs):
def SetDocumentAccessMode(self, userId, fileId, **kwargs):
"""Set document access mode

@@ -417,3 +418,4 @@

"""
if( userId == None or fileId == None ):
raise ApiException(400, "missing required parameters")
allParams = ['userId', 'fileId', 'mode']

@@ -429,2 +431,5 @@

resourcePath = '/doc/{userId}/files/{fileId}/accessinfo?mode={mode}'.replace('*', '')
pos = resourcePath.find("?")
if pos != -1:
resourcePath = resourcePath[0:pos]
resourcePath = resourcePath.replace('{format}', 'json')

@@ -436,2 +441,4 @@ method = 'PUT'

if ('mode' in params):
queryParams['mode'] = self.apiClient.toPathValue(params['mode'])
if ('userId' in params):

@@ -445,9 +452,4 @@ replacement = str(self.apiClient.toPathValue(params['userId']))

replacement)
if ('mode' in params):
replacement = str(self.apiClient.toPathValue(params['mode']))
resourcePath = resourcePath.replace('{' + 'mode' + '}',
replacement)
postData = (params['body'] if 'body' in params else None)
response = self.apiClient.callAPI(resourcePath, method, queryParams,
response = self.apiClient.callAPI(self.basePath, resourcePath, method, queryParams,
postData, headerParams)

@@ -471,3 +473,4 @@

"""
if( userId == None or fileId == None ):
raise ApiException(400, "missing required parameters")
allParams = ['userId', 'fileId']

@@ -498,4 +501,3 @@

postData = (params['body'] if 'body' in params else None)
response = self.apiClient.callAPI(resourcePath, method, queryParams,
response = self.apiClient.callAPI(self.basePath, resourcePath, method, queryParams,
postData, headerParams)

@@ -519,3 +521,4 @@

"""
if( userId == None or fileId == None ):
raise ApiException(400, "missing required parameters")
allParams = ['userId', 'fileId']

@@ -546,4 +549,3 @@

postData = (params['body'] if 'body' in params else None)
response = self.apiClient.callAPI(resourcePath, method, queryParams,
response = self.apiClient.callAPI(self.basePath, resourcePath, method, queryParams,
postData, headerParams)

@@ -567,3 +569,4 @@

"""
if( userId == None or path == None ):
raise ApiException(400, "missing required parameters")
allParams = ['userId', 'path']

@@ -594,4 +597,3 @@

postData = (params['body'] if 'body' in params else None)
response = self.apiClient.callAPI(resourcePath, method, queryParams,
response = self.apiClient.callAPI(self.basePath, resourcePath, method, queryParams,
postData, headerParams)

@@ -616,3 +618,4 @@

"""
if( userId == None or fileId == None or status == None ):
raise ApiException(400, "missing required parameters")
allParams = ['userId', 'fileId', 'status']

@@ -628,2 +631,5 @@

resourcePath = '/doc/{userId}/files/{fileId}/sharer'.replace('*', '')
pos = resourcePath.find("?")
if pos != -1:
resourcePath = resourcePath[0:pos]
resourcePath = resourcePath.replace('{format}', 'json')

@@ -635,2 +641,4 @@ method = 'PUT'

if ('status' in params):
queryParams['status'] = self.apiClient.toPathValue(params['status'])
if ('userId' in params):

@@ -644,9 +652,4 @@ replacement = str(self.apiClient.toPathValue(params['userId']))

replacement)
if ('status' in params):
replacement = str(self.apiClient.toPathValue(params['status']))
resourcePath = resourcePath.replace('{' + 'status' + '}',
replacement)
postData = (params['body'] if 'body' in params else None)
response = self.apiClient.callAPI(resourcePath, method, queryParams,
response = self.apiClient.callAPI(self.basePath, resourcePath, method, queryParams,
postData, headerParams)

@@ -661,3 +664,3 @@

def GetSharedDocuments(self, userId, sharesTypes, pageIndex, pageSize, orderBy, orderAsc, **kwargs):
def GetSharedDocuments(self, userId, sharesTypes, **kwargs):
"""Get shared documents

@@ -675,3 +678,4 @@

"""
if( userId == None or sharesTypes == None ):
raise ApiException(400, "missing required parameters")
allParams = ['userId', 'sharesTypes', 'pageIndex', 'pageSize', 'orderBy', 'orderAsc']

@@ -686,3 +690,6 @@

resourcePath = '/doc/{userId}/shares/{sharesTypes}?page_index={pageIndex}&page_size={pageSize}&order_by={orderBy}&order_asc={orderAsc}'.replace('*', '')
resourcePath = '/doc/{userId}/shares/{sharesTypes}?page_index={pageIndex}&page_size={pageSize}&order_by={orderBy}&order_asc={orderAsc}'.replace('*', '')
pos = resourcePath.find("?")
if pos != -1:
resourcePath = resourcePath[0:pos]
resourcePath = resourcePath.replace('{format}', 'json')

@@ -694,2 +701,10 @@ method = 'GET'

if ('pageIndex' in params):
queryParams['page_index'] = self.apiClient.toPathValue(params['pageIndex'])
if ('pageSize' in params):
queryParams['page_size'] = self.apiClient.toPathValue(params['pageSize'])
if ('orderBy' in params):
queryParams['order_by'] = self.apiClient.toPathValue(params['orderBy'])
if ('orderAsc' in params):
queryParams['order_asc'] = self.apiClient.toPathValue(params['orderAsc'])
if ('userId' in params):

@@ -703,21 +718,4 @@ replacement = str(self.apiClient.toPathValue(params['userId']))

replacement)
if ('pageIndex' in params):
replacement = str(self.apiClient.toPathValue(params['pageIndex']))
resourcePath = resourcePath.replace('{' + 'pageIndex' + '}',
replacement)
if ('pageSize' in params):
replacement = str(self.apiClient.toPathValue(params['pageSize']))
resourcePath = resourcePath.replace('{' + 'pageSize' + '}',
replacement)
if ('orderBy' in params):
replacement = str(self.apiClient.toPathValue(params['orderBy']))
resourcePath = resourcePath.replace('{' + 'orderBy' + '}',
replacement)
if ('orderAsc' in params):
replacement = str(self.apiClient.toPathValue(params['orderAsc']))
resourcePath = resourcePath.replace('{' + 'orderAsc' + '}',
replacement)
postData = (params['body'] if 'body' in params else None)
response = self.apiClient.callAPI(resourcePath, method, queryParams,
response = self.apiClient.callAPI(self.basePath, resourcePath, method, queryParams,
postData, headerParams)

@@ -732,3 +730,3 @@

def GetTemplateFields(self, userId, fileId, includeGeometry, **kwargs):
def GetTemplateFields(self, userId, fileId, **kwargs):
"""Get template fields

@@ -743,3 +741,4 @@

"""
if( userId == None or fileId == None ):
raise ApiException(400, "missing required parameters")
allParams = ['userId', 'fileId', 'includeGeometry']

@@ -755,2 +754,5 @@

resourcePath = '/doc/{userId}/files/{fileId}/fields?include_geometry={includeGeometry}'.replace('*', '')
pos = resourcePath.find("?")
if pos != -1:
resourcePath = resourcePath[0:pos]
resourcePath = resourcePath.replace('{format}', 'json')

@@ -762,2 +764,4 @@ method = 'GET'

if ('includeGeometry' in params):
queryParams['include_geometry'] = self.apiClient.toPathValue(params['includeGeometry'])
if ('userId' in params):

@@ -771,9 +775,4 @@ replacement = str(self.apiClient.toPathValue(params['userId']))

replacement)
if ('includeGeometry' in params):
replacement = str(self.apiClient.toPathValue(params['includeGeometry']))
resourcePath = resourcePath.replace('{' + 'includeGeometry' + '}',
replacement)
postData = (params['body'] if 'body' in params else None)
response = self.apiClient.callAPI(resourcePath, method, queryParams,
response = self.apiClient.callAPI(self.basePath, resourcePath, method, queryParams,
postData, headerParams)

@@ -797,3 +796,4 @@

"""
if( userId == None or fileId == None ):
raise ApiException(400, "missing required parameters")
allParams = ['userId', 'fileId']

@@ -824,4 +824,3 @@

postData = (params['body'] if 'body' in params else None)
response = self.apiClient.callAPI(resourcePath, method, queryParams,
response = self.apiClient.callAPI(self.basePath, resourcePath, method, queryParams,
postData, headerParams)

@@ -836,3 +835,3 @@

def GetDocumentPageImage(self, userId, fileId, pageNumber, dimension, quality, usePdf, expiresOn, **kwargs):
def GetDocumentPageImage(self, userId, fileId, pageNumber, dimension, **kwargs):
"""Returns a stream of bytes representing a particular document page image.

@@ -851,3 +850,4 @@

"""
if( userId == None or fileId == None or pageNumber == None or dimension == None ):
raise ApiException(400, "missing required parameters")
allParams = ['userId', 'fileId', 'pageNumber', 'dimension', 'quality', 'usePdf', 'expiresOn']

@@ -862,3 +862,6 @@

resourcePath = '/doc/{userId}/files/{fileId}/pages/{pageNumber}/images/{dimension}?quality={quality}&use_pdf={usePdf}&expires={expiresOn}'.replace('*', '')
resourcePath = '/doc/{userId}/files/{fileId}/pages/{pageNumber}/images/{dimension}?quality={quality}&use_pdf={usePdf}&expires={expiresOn}'.replace('*', '')
pos = resourcePath.find("?")
if pos != -1:
resourcePath = resourcePath[0:pos]
resourcePath = resourcePath.replace('{format}', 'json')

@@ -870,2 +873,8 @@ method = 'GET'

if ('quality' in params):
queryParams['quality'] = self.apiClient.toPathValue(params['quality'])
if ('usePdf' in params):
queryParams['use_pdf'] = self.apiClient.toPathValue(params['usePdf'])
if ('expiresOn' in params):
queryParams['expires'] = self.apiClient.toPathValue(params['expiresOn'])
if ('userId' in params):

@@ -887,27 +896,7 @@ replacement = str(self.apiClient.toPathValue(params['userId']))

replacement)
if ('quality' in params):
replacement = str(self.apiClient.toPathValue(params['quality']))
resourcePath = resourcePath.replace('{' + 'quality' + '}',
replacement)
if ('usePdf' in params):
replacement = str(self.apiClient.toPathValue(params['usePdf']))
resourcePath = resourcePath.replace('{' + 'usePdf' + '}',
replacement)
if ('expiresOn' in params):
replacement = str(self.apiClient.toPathValue(params['expiresOn']))
resourcePath = resourcePath.replace('{' + 'expiresOn' + '}',
replacement)
postData = (params['body'] if 'body' in params else None)
response = self.apiClient.callAPI(resourcePath, method, queryParams,
postData, headerParams)
if not response:
return None
responseObject = self.apiClient.deserialize(response, 'stream')
return responseObject
return self.apiClient.callAPI(self.basePath, resourcePath, method, queryParams,
postData, headerParams, FileStream)
def GetDocumentPagesImageUrls(self, userId, fileId, firstPage, pageCount, dimension, quality, usePdf, token, **kwargs):
def GetDocumentPagesImageUrls(self, userId, fileId, dimension, **kwargs):
"""Returns a list of URLs pointing to document page images.

@@ -927,3 +916,4 @@

"""
if( userId == None or fileId == None or dimension == None ):
raise ApiException(400, "missing required parameters")
allParams = ['userId', 'fileId', 'firstPage', 'pageCount', 'dimension', 'quality', 'usePdf', 'token']

@@ -938,3 +928,6 @@

resourcePath = '/doc/{userId}/files/{fileId}/pages/images/{dimension}/urls?first_page={firstPage}&page_count={pageCount}&quality={quality}&use_pdf={usePdf}&token={token}'.replace('*', '')
resourcePath = '/doc/{userId}/files/{fileId}/pages/images/{dimension}/urls?first_page={firstPage}&page_count={pageCount}&quality={quality}&use_pdf={usePdf}&token={token}'.replace('*', '')
pos = resourcePath.find("?")
if pos != -1:
resourcePath = resourcePath[0:pos]
resourcePath = resourcePath.replace('{format}', 'json')

@@ -946,2 +939,12 @@ method = 'GET'

if ('firstPage' in params):
queryParams['first_page'] = self.apiClient.toPathValue(params['firstPage'])
if ('pageCount' in params):
queryParams['page_count'] = self.apiClient.toPathValue(params['pageCount'])
if ('quality' in params):
queryParams['quality'] = self.apiClient.toPathValue(params['quality'])
if ('usePdf' in params):
queryParams['use_pdf'] = self.apiClient.toPathValue(params['usePdf'])
if ('token' in params):
queryParams['token'] = self.apiClient.toPathValue(params['token'])
if ('userId' in params):

@@ -955,10 +958,2 @@ replacement = str(self.apiClient.toPathValue(params['userId']))

replacement)
if ('firstPage' in params):
replacement = str(self.apiClient.toPathValue(params['firstPage']))
resourcePath = resourcePath.replace('{' + 'firstPage' + '}',
replacement)
if ('pageCount' in params):
replacement = str(self.apiClient.toPathValue(params['pageCount']))
resourcePath = resourcePath.replace('{' + 'pageCount' + '}',
replacement)
if ('dimension' in params):

@@ -968,17 +963,4 @@ replacement = str(self.apiClient.toPathValue(params['dimension']))

replacement)
if ('quality' in params):
replacement = str(self.apiClient.toPathValue(params['quality']))
resourcePath = resourcePath.replace('{' + 'quality' + '}',
replacement)
if ('usePdf' in params):
replacement = str(self.apiClient.toPathValue(params['usePdf']))
resourcePath = resourcePath.replace('{' + 'usePdf' + '}',
replacement)
if ('token' in params):
replacement = str(self.apiClient.toPathValue(params['token']))
resourcePath = resourcePath.replace('{' + 'token' + '}',
replacement)
postData = (params['body'] if 'body' in params else None)
response = self.apiClient.callAPI(resourcePath, method, queryParams,
response = self.apiClient.callAPI(self.basePath, resourcePath, method, queryParams,
postData, headerParams)

@@ -1002,3 +984,4 @@

"""
if( userId == None or fileId == None ):
raise ApiException(400, "missing required parameters")
allParams = ['userId', 'fileId']

@@ -1029,4 +1012,3 @@

postData = (params['body'] if 'body' in params else None)
response = self.apiClient.callAPI(resourcePath, method, queryParams,
response = self.apiClient.callAPI(self.basePath, resourcePath, method, queryParams,
postData, headerParams)

@@ -1041,3 +1023,3 @@

def RemoveEditLock(self, userId, fileId, **kwargs):
def RemoveEditLock(self, userId, fileId, lockId, **kwargs):
"""Removes edit lock for a document and replaces the document with its edited copy.

@@ -1048,8 +1030,10 @@

fileId, str: Document global unique identifier. (required)
lockId, str: Lock Id. (required)
Returns: RemoveEditLockResponse
"""
if( userId == None or fileId == None or lockId == None ):
raise ApiException(400, "missing required parameters")
allParams = ['userId', 'fileId', 'lockId']
allParams = ['userId', 'fileId']
params = locals()

@@ -1063,2 +1047,5 @@ for (key, val) in params['kwargs'].iteritems():

resourcePath = '/doc/{userId}/files/{fileId}/editlock'.replace('*', '')
pos = resourcePath.find("?")
if pos != -1:
resourcePath = resourcePath[0:pos]
resourcePath = resourcePath.replace('{format}', 'json')

@@ -1070,2 +1057,4 @@ method = 'DELETE'

if ('lockId' in params):
queryParams['lockId'] = self.apiClient.toPathValue(params['lockId'])
if ('userId' in params):

@@ -1080,4 +1069,3 @@ replacement = str(self.apiClient.toPathValue(params['userId']))

postData = (params['body'] if 'body' in params else None)
response = self.apiClient.callAPI(resourcePath, method, queryParams,
response = self.apiClient.callAPI(self.basePath, resourcePath, method, queryParams,
postData, headerParams)

@@ -1084,0 +1072,0 @@

#!/usr/bin/env python
"""
Copyright 2012 GroupDocs.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
"""
import urlparse

@@ -8,3 +23,3 @@ import hmac

from base64 import b64encode
from swagger import RequestSigner, ApiClient
from ApiClient import RequestSigner, ApiClient

@@ -11,0 +26,0 @@

#!/usr/bin/env python
"""
WordAPI.py
Copyright 2012 Wordnik, Inc.
Copyright 2012 GroupDocs.

@@ -24,10 +23,20 @@ Licensed under the Apache License, Version 2.0 (the "License");

from models import *
from groupdocs.FileStream import FileStream
from groupdocs.ApiClient import ApiException
class MgmtApi(object):
def __init__(self, apiClient):
self.apiClient = apiClient
self.apiClient = apiClient
self.__basePath = "https://api.groupdocs.com/v2.0"
@property
def basePath(self):
return self.__basePath
@basePath.setter
def basePath(self, value):
self.__basePath = value
def GetUserProfile(self, userId, **kwargs):

@@ -41,3 +50,4 @@ """Get user profile

"""
if( userId == None ):
raise ApiException(400, "missing required parameters")
allParams = ['userId']

@@ -64,4 +74,3 @@

postData = (params['body'] if 'body' in params else None)
response = self.apiClient.callAPI(resourcePath, method, queryParams,
response = self.apiClient.callAPI(self.basePath, resourcePath, method, queryParams,
postData, headerParams)

@@ -85,3 +94,4 @@

"""
if( userId == None or body == None ):
raise ApiException(400, "missing required parameters")
allParams = ['userId', 'body']

@@ -108,4 +118,3 @@

postData = (params['body'] if 'body' in params else None)
response = self.apiClient.callAPI(resourcePath, method, queryParams,
response = self.apiClient.callAPI(self.basePath, resourcePath, method, queryParams,
postData, headerParams)

@@ -129,3 +138,4 @@

"""
if( userId == None or body == None ):
raise ApiException(400, "missing required parameters")
allParams = ['userId', 'body']

@@ -152,4 +162,3 @@

postData = (params['body'] if 'body' in params else None)
response = self.apiClient.callAPI(resourcePath, method, queryParams,
response = self.apiClient.callAPI(self.basePath, resourcePath, method, queryParams,
postData, headerParams)

@@ -173,3 +182,4 @@

"""
if( callerId == None or token == None ):
raise ApiException(400, "missing required parameters")
allParams = ['callerId', 'token']

@@ -185,2 +195,5 @@

resourcePath = '/mgmt/{callerId}/reset-tokens?token={token}'.replace('*', '')
pos = resourcePath.find("?")
if pos != -1:
resourcePath = resourcePath[0:pos]
resourcePath = resourcePath.replace('{format}', 'json')

@@ -192,2 +205,4 @@ method = 'GET'

if ('token' in params):
queryParams['token'] = self.apiClient.toPathValue(params['token'])
if ('callerId' in params):

@@ -197,9 +212,4 @@ replacement = str(self.apiClient.toPathValue(params['callerId']))

replacement)
if ('token' in params):
replacement = str(self.apiClient.toPathValue(params['token']))
resourcePath = resourcePath.replace('{' + 'token' + '}',
replacement)
postData = (params['body'] if 'body' in params else None)
response = self.apiClient.callAPI(resourcePath, method, queryParams,
response = self.apiClient.callAPI(self.basePath, resourcePath, method, queryParams,
postData, headerParams)

@@ -223,3 +233,4 @@

"""
if( callerId == None or token == None ):
raise ApiException(400, "missing required parameters")
allParams = ['callerId', 'token']

@@ -235,2 +246,5 @@

resourcePath = '/mgmt/{callerId}/verif-tokens?token={token}'.replace('*', '')
pos = resourcePath.find("?")
if pos != -1:
resourcePath = resourcePath[0:pos]
resourcePath = resourcePath.replace('{format}', 'json')

@@ -242,2 +256,4 @@ method = 'GET'

if ('token' in params):
queryParams['token'] = self.apiClient.toPathValue(params['token'])
if ('callerId' in params):

@@ -247,9 +263,4 @@ replacement = str(self.apiClient.toPathValue(params['callerId']))

replacement)
if ('token' in params):
replacement = str(self.apiClient.toPathValue(params['token']))
resourcePath = resourcePath.replace('{' + 'token' + '}',
replacement)
postData = (params['body'] if 'body' in params else None)
response = self.apiClient.callAPI(resourcePath, method, queryParams,
response = self.apiClient.callAPI(self.basePath, resourcePath, method, queryParams,
postData, headerParams)

@@ -273,3 +284,4 @@

"""
if( callerId == None or token == None ):
raise ApiException(400, "missing required parameters")
allParams = ['callerId', 'token']

@@ -285,2 +297,5 @@

resourcePath = '/mgmt/{callerId}/claimed-tokens?token={token}'.replace('*', '')
pos = resourcePath.find("?")
if pos != -1:
resourcePath = resourcePath[0:pos]
resourcePath = resourcePath.replace('{format}', 'json')

@@ -292,2 +307,4 @@ method = 'GET'

if ('token' in params):
queryParams['token'] = self.apiClient.toPathValue(params['token'])
if ('callerId' in params):

@@ -297,9 +314,4 @@ replacement = str(self.apiClient.toPathValue(params['callerId']))

replacement)
if ('token' in params):
replacement = str(self.apiClient.toPathValue(params['token']))
resourcePath = resourcePath.replace('{' + 'token' + '}',
replacement)
postData = (params['body'] if 'body' in params else None)
response = self.apiClient.callAPI(resourcePath, method, queryParams,
response = self.apiClient.callAPI(self.basePath, resourcePath, method, queryParams,
postData, headerParams)

@@ -323,3 +335,4 @@

"""
if( callerId == None or userId == None ):
raise ApiException(400, "missing required parameters")
allParams = ['callerId', 'userId']

@@ -350,4 +363,3 @@

postData = (params['body'] if 'body' in params else None)
response = self.apiClient.callAPI(resourcePath, method, queryParams,
response = self.apiClient.callAPI(self.basePath, resourcePath, method, queryParams,
postData, headerParams)

@@ -372,3 +384,4 @@

"""
if( callerId == None or userId == None or body == None ):
raise ApiException(400, "missing required parameters")
allParams = ['callerId', 'userId', 'body']

@@ -399,4 +412,3 @@

postData = (params['body'] if 'body' in params else None)
response = self.apiClient.callAPI(resourcePath, method, queryParams,
response = self.apiClient.callAPI(self.basePath, resourcePath, method, queryParams,
postData, headerParams)

@@ -420,3 +432,4 @@

"""
if( callerId == None or body == None ):
raise ApiException(400, "missing required parameters")
allParams = ['callerId', 'body']

@@ -443,4 +456,3 @@

postData = (params['body'] if 'body' in params else None)
response = self.apiClient.callAPI(resourcePath, method, queryParams,
response = self.apiClient.callAPI(self.basePath, resourcePath, method, queryParams,
postData, headerParams)

@@ -465,3 +477,4 @@

"""
if( callerId == None or userId == None or password == None ):
raise ApiException(400, "missing required parameters")
allParams = ['callerId', 'userId', 'password']

@@ -477,2 +490,5 @@

resourcePath = '/mgmt/{callerId}/users/{userId}/logins'.replace('*', '')
pos = resourcePath.find("?")
if pos != -1:
resourcePath = resourcePath[0:pos]
resourcePath = resourcePath.replace('{format}', 'json')

@@ -484,2 +500,4 @@ method = 'POST'

if ('password' in params):
queryParams['password'] = self.apiClient.toPathValue(params['password'])
if ('callerId' in params):

@@ -493,9 +511,4 @@ replacement = str(self.apiClient.toPathValue(params['callerId']))

replacement)
if ('password' in params):
replacement = str(self.apiClient.toPathValue(params['password']))
resourcePath = resourcePath.replace('{' + 'password' + '}',
replacement)
postData = (params['body'] if 'body' in params else None)
response = self.apiClient.callAPI(resourcePath, method, queryParams,
response = self.apiClient.callAPI(self.basePath, resourcePath, method, queryParams,
postData, headerParams)

@@ -520,3 +533,4 @@

"""
if( callerId == None or userId == None or body == None ):
raise ApiException(400, "missing required parameters")
allParams = ['callerId', 'userId', 'body']

@@ -547,4 +561,3 @@

postData = (params['body'] if 'body' in params else None)
response = self.apiClient.callAPI(resourcePath, method, queryParams,
response = self.apiClient.callAPI(self.basePath, resourcePath, method, queryParams,
postData, headerParams)

@@ -568,3 +581,4 @@

"""
if( callerId == None or userId == None ):
raise ApiException(400, "missing required parameters")
allParams = ['callerId', 'userId']

@@ -595,4 +609,3 @@

postData = (params['body'] if 'body' in params else None)
response = self.apiClient.callAPI(resourcePath, method, queryParams,
response = self.apiClient.callAPI(self.basePath, resourcePath, method, queryParams,
postData, headerParams)

@@ -615,3 +628,4 @@

"""
if( userId == None ):
raise ApiException(400, "missing required parameters")
allParams = ['userId']

@@ -638,4 +652,3 @@

postData = (params['body'] if 'body' in params else None)
response = self.apiClient.callAPI(resourcePath, method, queryParams,
response = self.apiClient.callAPI(self.basePath, resourcePath, method, queryParams,
postData, headerParams)

@@ -660,3 +673,4 @@

"""
if( userId == None or provider == None or body == None ):
raise ApiException(400, "missing required parameters")
allParams = ['userId', 'provider', 'body']

@@ -687,4 +701,3 @@

postData = (params['body'] if 'body' in params else None)
response = self.apiClient.callAPI(resourcePath, method, queryParams,
response = self.apiClient.callAPI(self.basePath, resourcePath, method, queryParams,
postData, headerParams)

@@ -709,3 +722,4 @@

"""
if( userId == None or provider == None or body == None ):
raise ApiException(400, "missing required parameters")
allParams = ['userId', 'provider', 'body']

@@ -736,4 +750,3 @@

postData = (params['body'] if 'body' in params else None)
response = self.apiClient.callAPI(resourcePath, method, queryParams,
response = self.apiClient.callAPI(self.basePath, resourcePath, method, queryParams,
postData, headerParams)

@@ -756,3 +769,4 @@

"""
if( userId == None ):
raise ApiException(400, "missing required parameters")
allParams = ['userId']

@@ -779,4 +793,3 @@

postData = (params['body'] if 'body' in params else None)
response = self.apiClient.callAPI(resourcePath, method, queryParams,
response = self.apiClient.callAPI(self.basePath, resourcePath, method, queryParams,
postData, headerParams)

@@ -800,3 +813,4 @@

"""
if( callerId == None or userId == None ):
raise ApiException(400, "missing required parameters")
allParams = ['callerId', 'userId']

@@ -827,4 +841,3 @@

postData = (params['body'] if 'body' in params else None)
response = self.apiClient.callAPI(resourcePath, method, queryParams,
response = self.apiClient.callAPI(self.basePath, resourcePath, method, queryParams,
postData, headerParams)

@@ -849,3 +862,4 @@

"""
if( callerId == None or userId == None or body == None ):
raise ApiException(400, "missing required parameters")
allParams = ['callerId', 'userId', 'body']

@@ -876,4 +890,3 @@

postData = (params['body'] if 'body' in params else None)
response = self.apiClient.callAPI(resourcePath, method, queryParams,
response = self.apiClient.callAPI(self.basePath, resourcePath, method, queryParams,
postData, headerParams)

@@ -896,3 +909,4 @@

"""
if( userId == None ):
raise ApiException(400, "missing required parameters")
allParams = ['userId']

@@ -919,4 +933,3 @@

postData = (params['body'] if 'body' in params else None)
response = self.apiClient.callAPI(resourcePath, method, queryParams,
response = self.apiClient.callAPI(self.basePath, resourcePath, method, queryParams,
postData, headerParams)

@@ -939,3 +952,4 @@

"""
if( userId == None ):
raise ApiException(400, "missing required parameters")
allParams = ['userId']

@@ -962,4 +976,3 @@

postData = (params['body'] if 'body' in params else None)
response = self.apiClient.callAPI(resourcePath, method, queryParams,
response = self.apiClient.callAPI(self.basePath, resourcePath, method, queryParams,
postData, headerParams)

@@ -982,3 +995,4 @@

"""
if( adminId == None ):
raise ApiException(400, "missing required parameters")
allParams = ['adminId']

@@ -1005,4 +1019,3 @@

postData = (params['body'] if 'body' in params else None)
response = self.apiClient.callAPI(resourcePath, method, queryParams,
response = self.apiClient.callAPI(self.basePath, resourcePath, method, queryParams,
postData, headerParams)

@@ -1027,3 +1040,4 @@

"""
if( adminId == None or userName == None or body == None ):
raise ApiException(400, "missing required parameters")
allParams = ['adminId', 'userName', 'body']

@@ -1054,4 +1068,3 @@

postData = (params['body'] if 'body' in params else None)
response = self.apiClient.callAPI(resourcePath, method, queryParams,
response = self.apiClient.callAPI(self.basePath, resourcePath, method, queryParams,
postData, headerParams)

@@ -1075,3 +1088,4 @@

"""
if( adminId == None or userName == None ):
raise ApiException(400, "missing required parameters")
allParams = ['adminId', 'userName']

@@ -1102,4 +1116,3 @@

postData = (params['body'] if 'body' in params else None)
response = self.apiClient.callAPI(resourcePath, method, queryParams,
response = self.apiClient.callAPI(self.basePath, resourcePath, method, queryParams,
postData, headerParams)

@@ -1123,3 +1136,4 @@

"""
if( userId == None or area == None ):
raise ApiException(400, "missing required parameters")
allParams = ['userId', 'area']

@@ -1150,4 +1164,3 @@

postData = (params['body'] if 'body' in params else None)
response = self.apiClient.callAPI(resourcePath, method, queryParams,
response = self.apiClient.callAPI(self.basePath, resourcePath, method, queryParams,
postData, headerParams)

@@ -1171,3 +1184,4 @@

"""
if( callerId == None or guid == None ):
raise ApiException(400, "missing required parameters")
allParams = ['callerId', 'guid']

@@ -1198,4 +1212,3 @@

postData = (params['body'] if 'body' in params else None)
response = self.apiClient.callAPI(resourcePath, method, queryParams,
response = self.apiClient.callAPI(self.basePath, resourcePath, method, queryParams,
postData, headerParams)

@@ -1219,3 +1232,4 @@

"""
if( userId == None or area == None ):
raise ApiException(400, "missing required parameters")
allParams = ['userId', 'area']

@@ -1246,4 +1260,3 @@

postData = (params['body'] if 'body' in params else None)
response = self.apiClient.callAPI(resourcePath, method, queryParams,
response = self.apiClient.callAPI(self.basePath, resourcePath, method, queryParams,
postData, headerParams)

@@ -1250,0 +1263,0 @@

#!/usr/bin/env python
"""
Copyright 2012 Wordnik, Inc.
Copyright 2012 GroupDocs.

@@ -26,3 +26,3 @@ Licensed under the Apache License, Version 2.0 (the "License");

self.swaggerTypes = {
'result': 'AddCollaboratorResult',
'result': 'SetCollaboratorsResult',
'status': 'str',

@@ -34,5 +34,5 @@ 'error_message': 'str'

self.result = None # AddCollaboratorResult
self.result = None # SetCollaboratorsResult
self.status = None # str
self.error_message = None # str
#!/usr/bin/env python
"""
Copyright 2012 Wordnik, Inc.
Copyright 2012 GroupDocs.

@@ -5,0 +5,0 @@ Licensed under the Apache License, Version 2.0 (the "License");

#!/usr/bin/env python
"""
Copyright 2012 Wordnik, Inc.
Copyright 2012 GroupDocs.

@@ -5,0 +5,0 @@ Licensed under the Apache License, Version 2.0 (the "License");

#!/usr/bin/env python
"""
Copyright 2012 Wordnik, Inc.
Copyright 2012 GroupDocs.

@@ -5,0 +5,0 @@ Licensed under the Apache License, Version 2.0 (the "License");

#!/usr/bin/env python
"""
Copyright 2012 Wordnik, Inc.
Copyright 2012 GroupDocs.

@@ -5,0 +5,0 @@ Licensed under the Apache License, Version 2.0 (the "License");

#!/usr/bin/env python
"""
Copyright 2012 Wordnik, Inc.
Copyright 2012 GroupDocs.

@@ -5,0 +5,0 @@ Licensed under the Apache License, Version 2.0 (the "License");

#!/usr/bin/env python
"""
Copyright 2012 Wordnik, Inc.
Copyright 2012 GroupDocs.

@@ -5,0 +5,0 @@ Licensed under the Apache License, Version 2.0 (the "License");

#!/usr/bin/env python
"""
Copyright 2012 Wordnik, Inc.
Copyright 2012 GroupDocs.

@@ -5,0 +5,0 @@ Licensed under the Apache License, Version 2.0 (the "License");

#!/usr/bin/env python
"""
Copyright 2012 Wordnik, Inc.
Copyright 2012 GroupDocs.

@@ -5,0 +5,0 @@ Licensed under the Apache License, Version 2.0 (the "License");

#!/usr/bin/env python
"""
Copyright 2012 Wordnik, Inc.
Copyright 2012 GroupDocs.

@@ -5,0 +5,0 @@ Licensed under the Apache License, Version 2.0 (the "License");

#!/usr/bin/env python
"""
Copyright 2012 Wordnik, Inc.
Copyright 2012 GroupDocs.

@@ -5,0 +5,0 @@ Licensed under the Apache License, Version 2.0 (the "License");

#!/usr/bin/env python
"""
Copyright 2012 Wordnik, Inc.
Copyright 2012 GroupDocs.

@@ -5,0 +5,0 @@ Licensed under the Apache License, Version 2.0 (the "License");

#!/usr/bin/env python
"""
Copyright 2012 Wordnik, Inc.
Copyright 2012 GroupDocs.

@@ -5,0 +5,0 @@ Licensed under the Apache License, Version 2.0 (the "License");

#!/usr/bin/env python
"""
Copyright 2012 Wordnik, Inc.
Copyright 2012 GroupDocs.

@@ -5,0 +5,0 @@ Licensed under the Apache License, Version 2.0 (the "License");

#!/usr/bin/env python
"""
Copyright 2012 Wordnik, Inc.
Copyright 2012 GroupDocs.

@@ -5,0 +5,0 @@ Licensed under the Apache License, Version 2.0 (the "License");

#!/usr/bin/env python
"""
Copyright 2012 Wordnik, Inc.
Copyright 2012 GroupDocs.

@@ -5,0 +5,0 @@ Licensed under the Apache License, Version 2.0 (the "License");

#!/usr/bin/env python
"""
Copyright 2012 Wordnik, Inc.
Copyright 2012 GroupDocs.

@@ -5,0 +5,0 @@ Licensed under the Apache License, Version 2.0 (the "License");

#!/usr/bin/env python
"""
Copyright 2012 Wordnik, Inc.
Copyright 2012 GroupDocs.

@@ -5,0 +5,0 @@ Licensed under the Apache License, Version 2.0 (the "License");

#!/usr/bin/env python
"""
Copyright 2012 Wordnik, Inc.
Copyright 2012 GroupDocs.

@@ -5,0 +5,0 @@ Licensed under the Apache License, Version 2.0 (the "License");

#!/usr/bin/env python
"""
Copyright 2012 Wordnik, Inc.
Copyright 2012 GroupDocs.

@@ -5,0 +5,0 @@ Licensed under the Apache License, Version 2.0 (the "License");

#!/usr/bin/env python
"""
Copyright 2012 Wordnik, Inc.
Copyright 2012 GroupDocs.

@@ -5,0 +5,0 @@ Licensed under the Apache License, Version 2.0 (the "License");

#!/usr/bin/env python
"""
Copyright 2012 Wordnik, Inc.
Copyright 2012 GroupDocs.

@@ -5,0 +5,0 @@ Licensed under the Apache License, Version 2.0 (the "License");

#!/usr/bin/env python
"""
Copyright 2012 Wordnik, Inc.
Copyright 2012 GroupDocs.

@@ -5,0 +5,0 @@ Licensed under the Apache License, Version 2.0 (the "License");

#!/usr/bin/env python
"""
Copyright 2012 Wordnik, Inc.
Copyright 2012 GroupDocs.

@@ -5,0 +5,0 @@ Licensed under the Apache License, Version 2.0 (the "License");

#!/usr/bin/env python
"""
Copyright 2012 Wordnik, Inc.
Copyright 2012 GroupDocs.

@@ -5,0 +5,0 @@ Licensed under the Apache License, Version 2.0 (the "License");

#!/usr/bin/env python
"""
Copyright 2012 Wordnik, Inc.
Copyright 2012 GroupDocs.

@@ -5,0 +5,0 @@ Licensed under the Apache License, Version 2.0 (the "License");

#!/usr/bin/env python
"""
Copyright 2012 Wordnik, Inc.
Copyright 2012 GroupDocs.

@@ -5,0 +5,0 @@ Licensed under the Apache License, Version 2.0 (the "License");

#!/usr/bin/env python
"""
Copyright 2012 Wordnik, Inc.
Copyright 2012 GroupDocs.

@@ -5,0 +5,0 @@ Licensed under the Apache License, Version 2.0 (the "License");

#!/usr/bin/env python
"""
Copyright 2012 Wordnik, Inc.
Copyright 2012 GroupDocs.

@@ -5,0 +5,0 @@ Licensed under the Apache License, Version 2.0 (the "License");

#!/usr/bin/env python
"""
Copyright 2012 Wordnik, Inc.
Copyright 2012 GroupDocs.

@@ -5,0 +5,0 @@ Licensed under the Apache License, Version 2.0 (the "License");

#!/usr/bin/env python
"""
Copyright 2012 Wordnik, Inc.
Copyright 2012 GroupDocs.

@@ -5,0 +5,0 @@ Licensed under the Apache License, Version 2.0 (the "License");

#!/usr/bin/env python
"""
Copyright 2012 Wordnik, Inc.
Copyright 2012 GroupDocs.

@@ -5,0 +5,0 @@ Licensed under the Apache License, Version 2.0 (the "License");

#!/usr/bin/env python
"""
Copyright 2012 Wordnik, Inc.
Copyright 2012 GroupDocs.

@@ -5,0 +5,0 @@ Licensed under the Apache License, Version 2.0 (the "License");

#!/usr/bin/env python
"""
Copyright 2012 Wordnik, Inc.
Copyright 2012 GroupDocs.

@@ -5,0 +5,0 @@ Licensed under the Apache License, Version 2.0 (the "License");

#!/usr/bin/env python
"""
Copyright 2012 Wordnik, Inc.
Copyright 2012 GroupDocs.

@@ -5,0 +5,0 @@ Licensed under the Apache License, Version 2.0 (the "License");

#!/usr/bin/env python
"""
Copyright 2012 Wordnik, Inc.
Copyright 2012 GroupDocs.

@@ -5,0 +5,0 @@ Licensed under the Apache License, Version 2.0 (the "License");

#!/usr/bin/env python
"""
Copyright 2012 Wordnik, Inc.
Copyright 2012 GroupDocs.

@@ -5,0 +5,0 @@ Licensed under the Apache License, Version 2.0 (the "License");

#!/usr/bin/env python
"""
Copyright 2012 Wordnik, Inc.
Copyright 2012 GroupDocs.

@@ -5,0 +5,0 @@ Licensed under the Apache License, Version 2.0 (the "License");

#!/usr/bin/env python
"""
Copyright 2012 Wordnik, Inc.
Copyright 2012 GroupDocs.

@@ -5,0 +5,0 @@ Licensed under the Apache License, Version 2.0 (the "License");

#!/usr/bin/env python
"""
Copyright 2012 Wordnik, Inc.
Copyright 2012 GroupDocs.

@@ -5,0 +5,0 @@ Licensed under the Apache License, Version 2.0 (the "License");

#!/usr/bin/env python
"""
Copyright 2012 Wordnik, Inc.
Copyright 2012 GroupDocs.

@@ -5,0 +5,0 @@ Licensed under the Apache License, Version 2.0 (the "License");

#!/usr/bin/env python
"""
Copyright 2012 Wordnik, Inc.
Copyright 2012 GroupDocs.

@@ -5,0 +5,0 @@ Licensed under the Apache License, Version 2.0 (the "License");

#!/usr/bin/env python
"""
Copyright 2012 Wordnik, Inc.
Copyright 2012 GroupDocs.

@@ -5,0 +5,0 @@ Licensed under the Apache License, Version 2.0 (the "License");

#!/usr/bin/env python
"""
Copyright 2012 Wordnik, Inc.
Copyright 2012 GroupDocs.

@@ -26,2 +26,3 @@ Licensed under the Apache License, Version 2.0 (the "License");

self.swaggerTypes = {
'questionnaire_guid': 'str',
'questionnaire_id': 'float',

@@ -33,4 +34,5 @@ 'adjusted_name': 'str'

self.questionnaire_guid = None # str
self.questionnaire_id = None # float
self.adjusted_name = None # str
#!/usr/bin/env python
"""
Copyright 2012 Wordnik, Inc.
Copyright 2012 GroupDocs.

@@ -5,0 +5,0 @@ Licensed under the Apache License, Version 2.0 (the "License");

#!/usr/bin/env python
"""
Copyright 2012 Wordnik, Inc.
Copyright 2012 GroupDocs.

@@ -5,0 +5,0 @@ Licensed under the Apache License, Version 2.0 (the "License");

#!/usr/bin/env python
"""
Copyright 2012 Wordnik, Inc.
Copyright 2012 GroupDocs.

@@ -5,0 +5,0 @@ Licensed under the Apache License, Version 2.0 (the "License");

#!/usr/bin/env python
"""
Copyright 2012 Wordnik, Inc.
Copyright 2012 GroupDocs.

@@ -26,3 +26,3 @@ Licensed under the Apache License, Version 2.0 (the "License");

self.swaggerTypes = {
'values': 'list[str]',
'values': 'str',
'name': 'str',

@@ -35,3 +35,3 @@ 'contentType': 'str',

self.values = None # list[str]
self.values = None # str
self.name = None # str

@@ -38,0 +38,0 @@ self.contentType = None # str

#!/usr/bin/env python
"""
Copyright 2012 Wordnik, Inc.
Copyright 2012 GroupDocs.

@@ -5,0 +5,0 @@ Licensed under the Apache License, Version 2.0 (the "License");

#!/usr/bin/env python
"""
Copyright 2012 Wordnik, Inc.
Copyright 2012 GroupDocs.

@@ -5,0 +5,0 @@ Licensed under the Apache License, Version 2.0 (the "License");

#!/usr/bin/env python
"""
Copyright 2012 Wordnik, Inc.
Copyright 2012 GroupDocs.

@@ -5,0 +5,0 @@ Licensed under the Apache License, Version 2.0 (the "License");

#!/usr/bin/env python
"""
Copyright 2012 Wordnik, Inc.
Copyright 2012 GroupDocs.

@@ -5,0 +5,0 @@ Licensed under the Apache License, Version 2.0 (the "License");

#!/usr/bin/env python
"""
Copyright 2012 Wordnik, Inc.
Copyright 2012 GroupDocs.

@@ -5,0 +5,0 @@ Licensed under the Apache License, Version 2.0 (the "License");

#!/usr/bin/env python
"""
Copyright 2012 Wordnik, Inc.
Copyright 2012 GroupDocs.

@@ -5,0 +5,0 @@ Licensed under the Apache License, Version 2.0 (the "License");

#!/usr/bin/env python
"""
Copyright 2012 Wordnik, Inc.
Copyright 2012 GroupDocs.

@@ -5,0 +5,0 @@ Licensed under the Apache License, Version 2.0 (the "License");

#!/usr/bin/env python
"""
Copyright 2012 Wordnik, Inc.
Copyright 2012 GroupDocs.

@@ -5,0 +5,0 @@ Licensed under the Apache License, Version 2.0 (the "License");

#!/usr/bin/env python
"""
Copyright 2012 Wordnik, Inc.
Copyright 2012 GroupDocs.

@@ -5,0 +5,0 @@ Licensed under the Apache License, Version 2.0 (the "License");

#!/usr/bin/env python
"""
Copyright 2012 Wordnik, Inc.
Copyright 2012 GroupDocs.

@@ -5,0 +5,0 @@ Licensed under the Apache License, Version 2.0 (the "License");

#!/usr/bin/env python
"""
Copyright 2012 Wordnik, Inc.
Copyright 2012 GroupDocs.

@@ -5,0 +5,0 @@ Licensed under the Apache License, Version 2.0 (the "License");

#!/usr/bin/env python
"""
Copyright 2012 Wordnik, Inc.
Copyright 2012 GroupDocs.

@@ -5,0 +5,0 @@ Licensed under the Apache License, Version 2.0 (the "License");

#!/usr/bin/env python
"""
Copyright 2012 Wordnik, Inc.
Copyright 2012 GroupDocs.

@@ -5,0 +5,0 @@ Licensed under the Apache License, Version 2.0 (the "License");

#!/usr/bin/env python
"""
Copyright 2012 Wordnik, Inc.
Copyright 2012 GroupDocs.

@@ -5,0 +5,0 @@ Licensed under the Apache License, Version 2.0 (the "License");

#!/usr/bin/env python
"""
Copyright 2012 Wordnik, Inc.
Copyright 2012 GroupDocs.

@@ -5,0 +5,0 @@ Licensed under the Apache License, Version 2.0 (the "License");

#!/usr/bin/env python
"""
Copyright 2012 Wordnik, Inc.
Copyright 2012 GroupDocs.

@@ -5,0 +5,0 @@ Licensed under the Apache License, Version 2.0 (the "License");

#!/usr/bin/env python
"""
Copyright 2012 Wordnik, Inc.
Copyright 2012 GroupDocs.

@@ -5,0 +5,0 @@ Licensed under the Apache License, Version 2.0 (the "License");

#!/usr/bin/env python
"""
Copyright 2012 Wordnik, Inc.
Copyright 2012 GroupDocs.

@@ -26,2 +26,3 @@ Licensed under the Apache License, Version 2.0 (the "License");

self.swaggerTypes = {
'replies': 'list[AnnotationReplyInfo]',
'annotationGuid': 'str',

@@ -33,4 +34,5 @@ 'replyGuid': 'str'

self.replies = None # list[AnnotationReplyInfo]
self.annotationGuid = None # str
self.replyGuid = None # str
#!/usr/bin/env python
"""
Copyright 2012 Wordnik, Inc.
Copyright 2012 GroupDocs.

@@ -5,0 +5,0 @@ Licensed under the Apache License, Version 2.0 (the "License");

#!/usr/bin/env python
"""
Copyright 2012 Wordnik, Inc.
Copyright 2012 GroupDocs.

@@ -5,0 +5,0 @@ Licensed under the Apache License, Version 2.0 (the "License");

#!/usr/bin/env python
"""
Copyright 2012 Wordnik, Inc.
Copyright 2012 GroupDocs.

@@ -5,0 +5,0 @@ Licensed under the Apache License, Version 2.0 (the "License");

#!/usr/bin/env python
"""
Copyright 2012 Wordnik, Inc.
Copyright 2012 GroupDocs.

@@ -5,0 +5,0 @@ Licensed under the Apache License, Version 2.0 (the "License");

#!/usr/bin/env python
"""
Copyright 2012 Wordnik, Inc.
Copyright 2012 GroupDocs.

@@ -30,8 +30,8 @@ Licensed under the Apache License, Version 2.0 (the "License");

'shared_on': 'long',
'type': 'str',
'access': 'str',
'type': 'str',
'url': 'str',
'file_type': 'str',
'version': 'int',
'size': 'long',
'file_type': 'str',
'guid': 'str',

@@ -51,8 +51,8 @@ 'id': 'float',

self.shared_on = None # long
self.type = None # str
self.access = None # str
self.type = None # str
self.url = None # str
self.file_type = None # str
self.version = None # int
self.size = None # long
self.file_type = None # str
self.guid = None # str

@@ -59,0 +59,0 @@ self.id = None # float

#!/usr/bin/env python
"""
Copyright 2012 Wordnik, Inc.
Copyright 2012 GroupDocs.

@@ -5,0 +5,0 @@ Licensed under the Apache License, Version 2.0 (the "License");

#!/usr/bin/env python
"""
Copyright 2012 Wordnik, Inc.
Copyright 2012 GroupDocs.

@@ -5,0 +5,0 @@ Licensed under the Apache License, Version 2.0 (the "License");

#!/usr/bin/env python
"""
Copyright 2012 Wordnik, Inc.
Copyright 2012 GroupDocs.

@@ -5,0 +5,0 @@ Licensed under the Apache License, Version 2.0 (the "License");

#!/usr/bin/env python
"""
Copyright 2012 Wordnik, Inc.
Copyright 2012 GroupDocs.

@@ -5,0 +5,0 @@ Licensed under the Apache License, Version 2.0 (the "License");

#!/usr/bin/env python
"""
Copyright 2012 Wordnik, Inc.
Copyright 2012 GroupDocs.

@@ -5,0 +5,0 @@ Licensed under the Apache License, Version 2.0 (the "License");

#!/usr/bin/env python
"""
Copyright 2012 Wordnik, Inc.
Copyright 2012 GroupDocs.

@@ -5,0 +5,0 @@ Licensed under the Apache License, Version 2.0 (the "License");

#!/usr/bin/env python
"""
Copyright 2012 Wordnik, Inc.
Copyright 2012 GroupDocs.

@@ -5,0 +5,0 @@ Licensed under the Apache License, Version 2.0 (the "License");

#!/usr/bin/env python
"""
Copyright 2012 Wordnik, Inc.
Copyright 2012 GroupDocs.

@@ -5,0 +5,0 @@ Licensed under the Apache License, Version 2.0 (the "License");

#!/usr/bin/env python
"""
Copyright 2012 Wordnik, Inc.
Copyright 2012 GroupDocs.

@@ -5,0 +5,0 @@ Licensed under the Apache License, Version 2.0 (the "License");

#!/usr/bin/env python
"""
Copyright 2012 Wordnik, Inc.
Copyright 2012 GroupDocs.

@@ -5,0 +5,0 @@ Licensed under the Apache License, Version 2.0 (the "License");

#!/usr/bin/env python
"""
Copyright 2012 Wordnik, Inc.
Copyright 2012 GroupDocs.

@@ -5,0 +5,0 @@ Licensed under the Apache License, Version 2.0 (the "License");

#!/usr/bin/env python
"""
Copyright 2012 Wordnik, Inc.
Copyright 2012 GroupDocs.

@@ -5,0 +5,0 @@ Licensed under the Apache License, Version 2.0 (the "License");

#!/usr/bin/env python
"""
Copyright 2012 Wordnik, Inc.
Copyright 2012 GroupDocs.

@@ -5,0 +5,0 @@ Licensed under the Apache License, Version 2.0 (the "License");

#!/usr/bin/env python
"""
Copyright 2012 Wordnik, Inc.
Copyright 2012 GroupDocs.

@@ -5,0 +5,0 @@ Licensed under the Apache License, Version 2.0 (the "License");

#!/usr/bin/env python
"""
Copyright 2012 Wordnik, Inc.
Copyright 2012 GroupDocs.

@@ -5,0 +5,0 @@ Licensed under the Apache License, Version 2.0 (the "License");

#!/usr/bin/env python
"""
Copyright 2012 Wordnik, Inc.
Copyright 2012 GroupDocs.

@@ -5,0 +5,0 @@ Licensed under the Apache License, Version 2.0 (the "License");

#!/usr/bin/env python
"""
Copyright 2012 Wordnik, Inc.
Copyright 2012 GroupDocs.

@@ -5,0 +5,0 @@ Licensed under the Apache License, Version 2.0 (the "License");

#!/usr/bin/env python
"""
Copyright 2012 Wordnik, Inc.
Copyright 2012 GroupDocs.

@@ -5,0 +5,0 @@ Licensed under the Apache License, Version 2.0 (the "License");

#!/usr/bin/env python
"""
Copyright 2012 Wordnik, Inc.
Copyright 2012 GroupDocs.

@@ -5,0 +5,0 @@ Licensed under the Apache License, Version 2.0 (the "License");

#!/usr/bin/env python
"""
Copyright 2012 Wordnik, Inc.
Copyright 2012 GroupDocs.

@@ -5,0 +5,0 @@ Licensed under the Apache License, Version 2.0 (the "License");

#!/usr/bin/env python
"""
Copyright 2012 Wordnik, Inc.
Copyright 2012 GroupDocs.

@@ -5,0 +5,0 @@ Licensed under the Apache License, Version 2.0 (the "License");

#!/usr/bin/env python
"""
Copyright 2012 Wordnik, Inc.
Copyright 2012 GroupDocs.

@@ -5,0 +5,0 @@ Licensed under the Apache License, Version 2.0 (the "License");

#!/usr/bin/env python
"""
Copyright 2012 Wordnik, Inc.
Copyright 2012 GroupDocs.

@@ -5,0 +5,0 @@ Licensed under the Apache License, Version 2.0 (the "License");

#!/usr/bin/env python
"""
Copyright 2012 Wordnik, Inc.
Copyright 2012 GroupDocs.

@@ -5,0 +5,0 @@ Licensed under the Apache License, Version 2.0 (the "License");

#!/usr/bin/env python
"""
Copyright 2012 Wordnik, Inc.
Copyright 2012 GroupDocs.

@@ -5,0 +5,0 @@ Licensed under the Apache License, Version 2.0 (the "License");

#!/usr/bin/env python
"""
Copyright 2012 Wordnik, Inc.
Copyright 2012 GroupDocs.

@@ -5,0 +5,0 @@ Licensed under the Apache License, Version 2.0 (the "License");

#!/usr/bin/env python
"""
Copyright 2012 Wordnik, Inc.
Copyright 2012 GroupDocs.

@@ -5,0 +5,0 @@ Licensed under the Apache License, Version 2.0 (the "License");

#!/usr/bin/env python
"""
Copyright 2012 Wordnik, Inc.
Copyright 2012 GroupDocs.

@@ -5,0 +5,0 @@ Licensed under the Apache License, Version 2.0 (the "License");

#!/usr/bin/env python
"""
Copyright 2012 Wordnik, Inc.
Copyright 2012 GroupDocs.

@@ -5,0 +5,0 @@ Licensed under the Apache License, Version 2.0 (the "License");

#!/usr/bin/env python
"""
Copyright 2012 Wordnik, Inc.
Copyright 2012 GroupDocs.

@@ -5,0 +5,0 @@ Licensed under the Apache License, Version 2.0 (the "License");

#!/usr/bin/env python
"""
Copyright 2012 Wordnik, Inc.
Copyright 2012 GroupDocs.

@@ -5,0 +5,0 @@ Licensed under the Apache License, Version 2.0 (the "License");

#!/usr/bin/env python
"""
Copyright 2012 Wordnik, Inc.
Copyright 2012 GroupDocs.

@@ -5,0 +5,0 @@ Licensed under the Apache License, Version 2.0 (the "License");

#!/usr/bin/env python
"""
Copyright 2012 Wordnik, Inc.
Copyright 2012 GroupDocs.

@@ -5,0 +5,0 @@ Licensed under the Apache License, Version 2.0 (the "License");

#!/usr/bin/env python
"""
Copyright 2012 Wordnik, Inc.
Copyright 2012 GroupDocs.

@@ -5,0 +5,0 @@ Licensed under the Apache License, Version 2.0 (the "License");

#!/usr/bin/env python
"""
Copyright 2012 Wordnik, Inc.
Copyright 2012 GroupDocs.

@@ -5,0 +5,0 @@ Licensed under the Apache License, Version 2.0 (the "License");

#!/usr/bin/env python
"""
Copyright 2012 Wordnik, Inc.
Copyright 2012 GroupDocs.

@@ -5,0 +5,0 @@ Licensed under the Apache License, Version 2.0 (the "License");

#!/usr/bin/env python
"""
Copyright 2012 Wordnik, Inc.
Copyright 2012 GroupDocs.

@@ -5,0 +5,0 @@ Licensed under the Apache License, Version 2.0 (the "License");

#!/usr/bin/env python
"""
Copyright 2012 Wordnik, Inc.
Copyright 2012 GroupDocs.

@@ -5,0 +5,0 @@ Licensed under the Apache License, Version 2.0 (the "License");

#!/usr/bin/env python
"""
Copyright 2012 Wordnik, Inc.
Copyright 2012 GroupDocs.

@@ -5,0 +5,0 @@ Licensed under the Apache License, Version 2.0 (the "License");

#!/usr/bin/env python
"""
Copyright 2012 Wordnik, Inc.
Copyright 2012 GroupDocs.

@@ -5,0 +5,0 @@ Licensed under the Apache License, Version 2.0 (the "License");

#!/usr/bin/env python
"""
Copyright 2012 Wordnik, Inc.
Copyright 2012 GroupDocs.

@@ -5,0 +5,0 @@ Licensed under the Apache License, Version 2.0 (the "License");

#!/usr/bin/env python
"""
Copyright 2012 Wordnik, Inc.
Copyright 2012 GroupDocs.

@@ -5,0 +5,0 @@ Licensed under the Apache License, Version 2.0 (the "License");

#!/usr/bin/env python
"""
Copyright 2012 Wordnik, Inc.
Copyright 2012 GroupDocs.

@@ -5,0 +5,0 @@ Licensed under the Apache License, Version 2.0 (the "License");

#!/usr/bin/env python
"""
Copyright 2012 Wordnik, Inc.
Copyright 2012 GroupDocs.

@@ -5,0 +5,0 @@ Licensed under the Apache License, Version 2.0 (the "License");

#!/usr/bin/env python
"""
Copyright 2012 Wordnik, Inc.
Copyright 2012 GroupDocs.

@@ -5,0 +5,0 @@ Licensed under the Apache License, Version 2.0 (the "License");

#!/usr/bin/env python
"""
Copyright 2012 Wordnik, Inc.
Copyright 2012 GroupDocs.

@@ -5,0 +5,0 @@ Licensed under the Apache License, Version 2.0 (the "License");

#!/usr/bin/env python
"""
Copyright 2012 Wordnik, Inc.
Copyright 2012 GroupDocs.

@@ -5,0 +5,0 @@ Licensed under the Apache License, Version 2.0 (the "License");

#!/usr/bin/env python
"""
Copyright 2012 Wordnik, Inc.
Copyright 2012 GroupDocs.

@@ -5,0 +5,0 @@ Licensed under the Apache License, Version 2.0 (the "License");

#!/usr/bin/env python
"""
Copyright 2012 Wordnik, Inc.
Copyright 2012 GroupDocs.

@@ -5,0 +5,0 @@ Licensed under the Apache License, Version 2.0 (the "License");

#!/usr/bin/env python
"""
Copyright 2012 Wordnik, Inc.
Copyright 2012 GroupDocs.

@@ -5,0 +5,0 @@ Licensed under the Apache License, Version 2.0 (the "License");

#!/usr/bin/env python
"""
Copyright 2012 Wordnik, Inc.
Copyright 2012 GroupDocs.

@@ -5,0 +5,0 @@ Licensed under the Apache License, Version 2.0 (the "License");

#!/usr/bin/env python
"""
Copyright 2012 Wordnik, Inc.
Copyright 2012 GroupDocs.

@@ -5,0 +5,0 @@ Licensed under the Apache License, Version 2.0 (the "License");

#!/usr/bin/env python
"""
Copyright 2012 Wordnik, Inc.
Copyright 2012 GroupDocs.

@@ -5,0 +5,0 @@ Licensed under the Apache License, Version 2.0 (the "License");

#!/usr/bin/env python
"""
Copyright 2012 Wordnik, Inc.
Copyright 2012 GroupDocs.

@@ -5,0 +5,0 @@ Licensed under the Apache License, Version 2.0 (the "License");

#!/usr/bin/env python
"""
Copyright 2012 Wordnik, Inc.
Copyright 2012 GroupDocs.

@@ -26,3 +26,4 @@ Licensed under the Apache License, Version 2.0 (the "License");

self.swaggerTypes = {
'executions': 'list[QuestionnaireExecutionInfo]'
'executions': 'list[QuestionnaireExecutionInfo]',
'questionnaire_guid': 'str'

@@ -33,2 +34,3 @@ }

self.executions = None # list[QuestionnaireExecutionInfo]
self.questionnaire_guid = None # str
#!/usr/bin/env python
"""
Copyright 2012 Wordnik, Inc.
Copyright 2012 GroupDocs.

@@ -5,0 +5,0 @@ Licensed under the Apache License, Version 2.0 (the "License");

#!/usr/bin/env python
"""
Copyright 2012 Wordnik, Inc.
Copyright 2012 GroupDocs.

@@ -5,0 +5,0 @@ Licensed under the Apache License, Version 2.0 (the "License");

#!/usr/bin/env python
"""
Copyright 2012 Wordnik, Inc.
Copyright 2012 GroupDocs.

@@ -5,0 +5,0 @@ Licensed under the Apache License, Version 2.0 (the "License");

#!/usr/bin/env python
"""
Copyright 2012 Wordnik, Inc.
Copyright 2012 GroupDocs.

@@ -5,0 +5,0 @@ Licensed under the Apache License, Version 2.0 (the "License");

#!/usr/bin/env python
"""
Copyright 2012 Wordnik, Inc.
Copyright 2012 GroupDocs.

@@ -5,0 +5,0 @@ Licensed under the Apache License, Version 2.0 (the "License");

#!/usr/bin/env python
"""
Copyright 2012 Wordnik, Inc.
Copyright 2012 GroupDocs.

@@ -5,0 +5,0 @@ Licensed under the Apache License, Version 2.0 (the "License");

#!/usr/bin/env python
"""
Copyright 2012 Wordnik, Inc.
Copyright 2012 GroupDocs.

@@ -5,0 +5,0 @@ Licensed under the Apache License, Version 2.0 (the "License");

#!/usr/bin/env python
"""
Copyright 2012 Wordnik, Inc.
Copyright 2012 GroupDocs.

@@ -5,0 +5,0 @@ Licensed under the Apache License, Version 2.0 (the "License");

#!/usr/bin/env python
"""
Copyright 2012 Wordnik, Inc.
Copyright 2012 GroupDocs.

@@ -5,0 +5,0 @@ Licensed under the Apache License, Version 2.0 (the "License");

#!/usr/bin/env python
"""
Copyright 2012 Wordnik, Inc.
Copyright 2012 GroupDocs.

@@ -5,0 +5,0 @@ Licensed under the Apache License, Version 2.0 (the "License");

#!/usr/bin/env python
"""
Copyright 2012 Wordnik, Inc.
Copyright 2012 GroupDocs.

@@ -5,0 +5,0 @@ Licensed under the Apache License, Version 2.0 (the "License");

#!/usr/bin/env python
"""
Copyright 2012 Wordnik, Inc.
Copyright 2012 GroupDocs.

@@ -5,0 +5,0 @@ Licensed under the Apache License, Version 2.0 (the "License");

#!/usr/bin/env python
"""
Copyright 2012 Wordnik, Inc.
Copyright 2012 GroupDocs.

@@ -5,0 +5,0 @@ Licensed under the Apache License, Version 2.0 (the "License");

#!/usr/bin/env python
"""
Copyright 2012 Wordnik, Inc.
Copyright 2012 GroupDocs.

@@ -5,0 +5,0 @@ Licensed under the Apache License, Version 2.0 (the "License");

#!/usr/bin/env python
"""
Copyright 2012 Wordnik, Inc.
Copyright 2012 GroupDocs.

@@ -5,0 +5,0 @@ Licensed under the Apache License, Version 2.0 (the "License");

#!/usr/bin/env python
"""
Copyright 2012 Wordnik, Inc.
Copyright 2012 GroupDocs.

@@ -5,0 +5,0 @@ Licensed under the Apache License, Version 2.0 (the "License");

#!/usr/bin/env python
"""
Copyright 2012 Wordnik, Inc.
Copyright 2012 GroupDocs.

@@ -5,0 +5,0 @@ Licensed under the Apache License, Version 2.0 (the "License");

#!/usr/bin/env python
"""
Copyright 2012 Wordnik, Inc.
Copyright 2012 GroupDocs.

@@ -5,0 +5,0 @@ Licensed under the Apache License, Version 2.0 (the "License");

#!/usr/bin/env python
"""
Copyright 2012 Wordnik, Inc.
Copyright 2012 GroupDocs.

@@ -5,0 +5,0 @@ Licensed under the Apache License, Version 2.0 (the "License");

#!/usr/bin/env python
"""
Copyright 2012 Wordnik, Inc.
Copyright 2012 GroupDocs.

@@ -5,0 +5,0 @@ Licensed under the Apache License, Version 2.0 (the "License");

#!/usr/bin/env python
"""
Copyright 2012 Wordnik, Inc.
Copyright 2012 GroupDocs.

@@ -5,0 +5,0 @@ Licensed under the Apache License, Version 2.0 (the "License");

#!/usr/bin/env python
"""
Copyright 2012 Wordnik, Inc.
Copyright 2012 GroupDocs.

@@ -5,0 +5,0 @@ Licensed under the Apache License, Version 2.0 (the "License");

#!/usr/bin/env python
"""
Copyright 2012 Wordnik, Inc.
Copyright 2012 GroupDocs.

@@ -5,0 +5,0 @@ Licensed under the Apache License, Version 2.0 (the "License");

#!/usr/bin/env python
"""
Copyright 2012 Wordnik, Inc.
Copyright 2012 GroupDocs.

@@ -5,0 +5,0 @@ Licensed under the Apache License, Version 2.0 (the "License");

#!/usr/bin/env python
"""
Copyright 2012 Wordnik, Inc.
Copyright 2012 GroupDocs.

@@ -5,0 +5,0 @@ Licensed under the Apache License, Version 2.0 (the "License");

#!/usr/bin/env python
"""
Copyright 2012 Wordnik, Inc.
Copyright 2012 GroupDocs.

@@ -5,0 +5,0 @@ Licensed under the Apache License, Version 2.0 (the "License");

#!/usr/bin/env python
"""
Copyright 2012 Wordnik, Inc.
Copyright 2012 GroupDocs.

@@ -5,0 +5,0 @@ Licensed under the Apache License, Version 2.0 (the "License");

#!/usr/bin/env python
"""
Copyright 2012 Wordnik, Inc.
Copyright 2012 GroupDocs.

@@ -5,0 +5,0 @@ Licensed under the Apache License, Version 2.0 (the "License");

#!/usr/bin/env python
"""
Copyright 2012 Wordnik, Inc.
Copyright 2012 GroupDocs.

@@ -5,0 +5,0 @@ Licensed under the Apache License, Version 2.0 (the "License");

#!/usr/bin/env python
"""
Copyright 2012 Wordnik, Inc.
Copyright 2012 GroupDocs.

@@ -5,0 +5,0 @@ Licensed under the Apache License, Version 2.0 (the "License");

#!/usr/bin/env python
"""
Copyright 2012 Wordnik, Inc.
Copyright 2012 GroupDocs.

@@ -5,0 +5,0 @@ Licensed under the Apache License, Version 2.0 (the "License");

#!/usr/bin/env python
"""
Copyright 2012 Wordnik, Inc.
Copyright 2012 GroupDocs.

@@ -5,0 +5,0 @@ Licensed under the Apache License, Version 2.0 (the "License");

#!/usr/bin/env python
"""
Copyright 2012 Wordnik, Inc.
Copyright 2012 GroupDocs.

@@ -5,0 +5,0 @@ Licensed under the Apache License, Version 2.0 (the "License");

#!/usr/bin/env python
"""
Copyright 2012 Wordnik, Inc.
Copyright 2012 GroupDocs.

@@ -5,0 +5,0 @@ Licensed under the Apache License, Version 2.0 (the "License");

#!/usr/bin/env python
"""
Copyright 2012 Wordnik, Inc.
Copyright 2012 GroupDocs.

@@ -5,0 +5,0 @@ Licensed under the Apache License, Version 2.0 (the "License");

#!/usr/bin/env python
"""
Copyright 2012 Wordnik, Inc.
Copyright 2012 GroupDocs.

@@ -5,0 +5,0 @@ Licensed under the Apache License, Version 2.0 (the "License");

#!/usr/bin/env python
"""
Copyright 2012 Wordnik, Inc.
Copyright 2012 GroupDocs.

@@ -26,4 +26,4 @@ Licensed under the Apache License, Version 2.0 (the "License");

self.swaggerTypes = {
'Y': 'float',
'X': 'float'
'y': 'float',
'x': 'float'

@@ -33,4 +33,4 @@ }

self.Y = None # float
self.X = None # float
self.y = None # float
self.x = None # float
#!/usr/bin/env python
"""
Copyright 2012 Wordnik, Inc.
Copyright 2012 GroupDocs.

@@ -5,0 +5,0 @@ Licensed under the Apache License, Version 2.0 (the "License");

#!/usr/bin/env python
"""
Copyright 2012 Wordnik, Inc.
Copyright 2012 GroupDocs.

@@ -5,0 +5,0 @@ Licensed under the Apache License, Version 2.0 (the "License");

#!/usr/bin/env python
"""
Copyright 2012 Wordnik, Inc.
Copyright 2012 GroupDocs.

@@ -5,0 +5,0 @@ Licensed under the Apache License, Version 2.0 (the "License");

#!/usr/bin/env python
"""
Copyright 2012 Wordnik, Inc.
Copyright 2012 GroupDocs.

@@ -30,3 +30,3 @@ Licensed under the Apache License, Version 2.0 (the "License");

'executive': 'UserIdentity',
'document': 'DocumentIdentity',
'document': 'DocumentDownloadInfo',
'collector_id': 'float',

@@ -47,3 +47,3 @@ 'collector_guid': 'str',

self.executive = None # UserIdentity
self.document = None # DocumentIdentity
self.document = None # DocumentDownloadInfo
self.collector_id = None # float

@@ -50,0 +50,0 @@ self.collector_guid = None # str

#!/usr/bin/env python
"""
Copyright 2012 Wordnik, Inc.
Copyright 2012 GroupDocs.

@@ -32,4 +32,5 @@ Licensed under the Apache License, Version 2.0 (the "License");

'resolved_executions': 'int',
'name': 'str',
'pages': 'list[QuestionnairePageInfo]',
'name': 'str',
'document_ids': 'list[str]',
'descr': 'str',

@@ -48,4 +49,5 @@ 'modified': 'long',

self.resolved_executions = None # int
self.name = None # str
self.pages = None # list[QuestionnairePageInfo]
self.name = None # str
self.document_ids = None # list[str]
self.descr = None # str

@@ -52,0 +54,0 @@ self.modified = None # long

#!/usr/bin/env python
"""
Copyright 2012 Wordnik, Inc.
Copyright 2012 GroupDocs.

@@ -5,0 +5,0 @@ Licensed under the Apache License, Version 2.0 (the "License");

#!/usr/bin/env python
"""
Copyright 2012 Wordnik, Inc.
Copyright 2012 GroupDocs.

@@ -26,4 +26,4 @@ Licensed under the Apache License, Version 2.0 (the "License");

self.swaggerTypes = {
'Length': 'int',
'Position': 'int'
'position': 'int',
'length': 'int'

@@ -33,4 +33,4 @@ }

self.Length = None # int
self.Position = None # int
self.position = None # int
self.length = None # int
#!/usr/bin/env python
"""
Copyright 2012 Wordnik, Inc.
Copyright 2012 GroupDocs.

@@ -26,6 +26,6 @@ Licensed under the Apache License, Version 2.0 (the "License");

self.swaggerTypes = {
'Height': 'float',
'Width': 'float',
'Y': 'float',
'X': 'float'
'height': 'float',
'width': 'float',
'y': 'float',
'x': 'float'

@@ -35,6 +35,6 @@ }

self.Height = None # float
self.Width = None # float
self.Y = None # float
self.X = None # float
self.height = None # float
self.width = None # float
self.y = None # float
self.x = None # float
#!/usr/bin/env python
"""
Copyright 2012 Wordnik, Inc.
Copyright 2012 GroupDocs.

@@ -5,0 +5,0 @@ Licensed under the Apache License, Version 2.0 (the "License");

#!/usr/bin/env python
"""
Copyright 2012 Wordnik, Inc.
Copyright 2012 GroupDocs.

@@ -5,0 +5,0 @@ Licensed under the Apache License, Version 2.0 (the "License");

#!/usr/bin/env python
"""
Copyright 2012 Wordnik, Inc.
Copyright 2012 GroupDocs.

@@ -5,0 +5,0 @@ Licensed under the Apache License, Version 2.0 (the "License");

#!/usr/bin/env python
"""
Copyright 2012 Wordnik, Inc.
Copyright 2012 GroupDocs.

@@ -5,0 +5,0 @@ Licensed under the Apache License, Version 2.0 (the "License");

#!/usr/bin/env python
"""
Copyright 2012 Wordnik, Inc.
Copyright 2012 GroupDocs.

@@ -5,0 +5,0 @@ Licensed under the Apache License, Version 2.0 (the "License");

#!/usr/bin/env python
"""
Copyright 2012 Wordnik, Inc.
Copyright 2012 GroupDocs.

@@ -5,0 +5,0 @@ Licensed under the Apache License, Version 2.0 (the "License");

#!/usr/bin/env python
"""
Copyright 2012 Wordnik, Inc.
Copyright 2012 GroupDocs.

@@ -5,0 +5,0 @@ Licensed under the Apache License, Version 2.0 (the "License");

#!/usr/bin/env python
"""
Copyright 2012 Wordnik, Inc.
Copyright 2012 GroupDocs.

@@ -5,0 +5,0 @@ Licensed under the Apache License, Version 2.0 (the "License");

#!/usr/bin/env python
"""
Copyright 2012 Wordnik, Inc.
Copyright 2012 GroupDocs.

@@ -28,2 +28,3 @@ Licensed under the Apache License, Version 2.0 (the "License");

'id': 'float',
'customEmailMessage': 'str',
'color': 'int',

@@ -39,2 +40,3 @@ 'primary_email': 'str',

self.id = None # float
self.customEmailMessage = None # str
self.color = None # int

@@ -41,0 +43,0 @@ self.primary_email = None # str

#!/usr/bin/env python
"""
Copyright 2012 Wordnik, Inc.
Copyright 2012 GroupDocs.

@@ -5,0 +5,0 @@ Licensed under the Apache License, Version 2.0 (the "License");

#!/usr/bin/env python
"""
Copyright 2012 Wordnik, Inc.
Copyright 2012 GroupDocs.

@@ -5,0 +5,0 @@ Licensed under the Apache License, Version 2.0 (the "License");

#!/usr/bin/env python
"""
Copyright 2012 Wordnik, Inc.
Copyright 2012 GroupDocs.

@@ -5,0 +5,0 @@ Licensed under the Apache License, Version 2.0 (the "License");

#!/usr/bin/env python
"""
Copyright 2012 Wordnik, Inc.
Copyright 2012 GroupDocs.

@@ -5,0 +5,0 @@ Licensed under the Apache License, Version 2.0 (the "License");

#!/usr/bin/env python
"""
Copyright 2012 Wordnik, Inc.
Copyright 2012 GroupDocs.

@@ -5,0 +5,0 @@ Licensed under the Apache License, Version 2.0 (the "License");

#!/usr/bin/env python
"""
Copyright 2012 Wordnik, Inc.
Copyright 2012 GroupDocs.

@@ -5,0 +5,0 @@ Licensed under the Apache License, Version 2.0 (the "License");

#!/usr/bin/env python
"""
Copyright 2012 Wordnik, Inc.
Copyright 2012 GroupDocs.

@@ -5,0 +5,0 @@ Licensed under the Apache License, Version 2.0 (the "License");

#!/usr/bin/env python
"""
Copyright 2012 Wordnik, Inc.
Copyright 2012 GroupDocs.

@@ -5,0 +5,0 @@ Licensed under the Apache License, Version 2.0 (the "License");

#!/usr/bin/env python
"""
Copyright 2012 Wordnik, Inc.
Copyright 2012 GroupDocs.

@@ -5,0 +5,0 @@ Licensed under the Apache License, Version 2.0 (the "License");

#!/usr/bin/env python
"""
Copyright 2012 Wordnik, Inc.
Copyright 2012 GroupDocs.

@@ -5,0 +5,0 @@ Licensed under the Apache License, Version 2.0 (the "License");

#!/usr/bin/env python
"""
Copyright 2012 Wordnik, Inc.
Copyright 2012 GroupDocs.

@@ -5,0 +5,0 @@ Licensed under the Apache License, Version 2.0 (the "License");

#!/usr/bin/env python
"""
Copyright 2012 Wordnik, Inc.
Copyright 2012 GroupDocs.

@@ -5,0 +5,0 @@ Licensed under the Apache License, Version 2.0 (the "License");

#!/usr/bin/env python
"""
Copyright 2012 Wordnik, Inc.
Copyright 2012 GroupDocs.

@@ -5,0 +5,0 @@ Licensed under the Apache License, Version 2.0 (the "License");

#!/usr/bin/env python
"""
Copyright 2012 Wordnik, Inc.
Copyright 2012 GroupDocs.

@@ -30,8 +30,8 @@ Licensed under the Apache License, Version 2.0 (the "License");

'shared_on': 'long',
'type': 'str',
'access': 'str',
'type': 'str',
'url': 'str',
'file_type': 'str',
'version': 'int',
'size': 'long',
'file_type': 'str',
'guid': 'str',

@@ -51,8 +51,8 @@ 'id': 'float',

self.shared_on = None # long
self.type = None # str
self.access = None # str
self.type = None # str
self.url = None # str
self.file_type = None # str
self.version = None # int
self.size = None # long
self.file_type = None # str
self.guid = None # str

@@ -59,0 +59,0 @@ self.id = None # float

#!/usr/bin/env python
"""
Copyright 2012 Wordnik, Inc.
Copyright 2012 GroupDocs.

@@ -5,0 +5,0 @@ Licensed under the Apache License, Version 2.0 (the "License");

#!/usr/bin/env python
"""
Copyright 2012 Wordnik, Inc.
Copyright 2012 GroupDocs.

@@ -5,0 +5,0 @@ Licensed under the Apache License, Version 2.0 (the "License");

#!/usr/bin/env python
"""
Copyright 2012 Wordnik, Inc.
Copyright 2012 GroupDocs.

@@ -5,0 +5,0 @@ Licensed under the Apache License, Version 2.0 (the "License");

#!/usr/bin/env python
"""
Copyright 2012 Wordnik, Inc.
Copyright 2012 GroupDocs.

@@ -5,0 +5,0 @@ Licensed under the Apache License, Version 2.0 (the "License");

#!/usr/bin/env python
"""
Copyright 2012 Wordnik, Inc.
Copyright 2012 GroupDocs.

@@ -5,0 +5,0 @@ Licensed under the Apache License, Version 2.0 (the "License");

#!/usr/bin/env python
"""
Copyright 2012 Wordnik, Inc.
Copyright 2012 GroupDocs.

@@ -5,0 +5,0 @@ Licensed under the Apache License, Version 2.0 (the "License");

#!/usr/bin/env python
"""
Copyright 2012 Wordnik, Inc.
Copyright 2012 GroupDocs.

@@ -5,0 +5,0 @@ Licensed under the Apache License, Version 2.0 (the "License");

#!/usr/bin/env python
"""
Copyright 2012 Wordnik, Inc.
Copyright 2012 GroupDocs.

@@ -5,0 +5,0 @@ Licensed under the Apache License, Version 2.0 (the "License");

#!/usr/bin/env python
"""
Copyright 2012 Wordnik, Inc.
Copyright 2012 GroupDocs.

@@ -5,0 +5,0 @@ Licensed under the Apache License, Version 2.0 (the "License");

#!/usr/bin/env python
"""
Copyright 2012 Wordnik, Inc.
Copyright 2012 GroupDocs.

@@ -5,0 +5,0 @@ Licensed under the Apache License, Version 2.0 (the "License");

#!/usr/bin/env python
"""
Copyright 2012 Wordnik, Inc.
Copyright 2012 GroupDocs.

@@ -5,0 +5,0 @@ Licensed under the Apache License, Version 2.0 (the "License");

#!/usr/bin/env python
"""
Copyright 2012 Wordnik, Inc.
Copyright 2012 GroupDocs.

@@ -5,0 +5,0 @@ Licensed under the Apache License, Version 2.0 (the "License");

#!/usr/bin/env python
"""
Copyright 2012 Wordnik, Inc.
Copyright 2012 GroupDocs.

@@ -5,0 +5,0 @@ Licensed under the Apache License, Version 2.0 (the "License");

#!/usr/bin/env python
"""
Copyright 2012 Wordnik, Inc.
Copyright 2012 GroupDocs.

@@ -5,0 +5,0 @@ Licensed under the Apache License, Version 2.0 (the "License");

#!/usr/bin/env python
"""
Copyright 2012 Wordnik, Inc.
Copyright 2012 GroupDocs.

@@ -5,0 +5,0 @@ Licensed under the Apache License, Version 2.0 (the "License");

#!/usr/bin/env python
"""
Copyright 2012 Wordnik, Inc.
Copyright 2012 GroupDocs.

@@ -27,2 +27,3 @@ Licensed under the Apache License, Version 2.0 (the "License");

'fieldsCount': 'int',
'originalDocumentImportedFields': 'list[SignatureDocumentFieldInfo]',
'finalDocumentMD5': 'str',

@@ -40,2 +41,3 @@ 'order': 'int',

self.fieldsCount = None # int
self.originalDocumentImportedFields = None # list[SignatureDocumentFieldInfo]
self.finalDocumentMD5 = None # str

@@ -42,0 +44,0 @@ self.order = None # int

#!/usr/bin/env python
"""
Copyright 2012 Wordnik, Inc.
Copyright 2012 GroupDocs.

@@ -5,0 +5,0 @@ Licensed under the Apache License, Version 2.0 (the "License");

#!/usr/bin/env python
"""
Copyright 2012 Wordnik, Inc.
Copyright 2012 GroupDocs.

@@ -5,0 +5,0 @@ Licensed under the Apache License, Version 2.0 (the "License");

#!/usr/bin/env python
"""
Copyright 2012 Wordnik, Inc.
Copyright 2012 GroupDocs.

@@ -5,0 +5,0 @@ Licensed under the Apache License, Version 2.0 (the "License");

#!/usr/bin/env python
"""
Copyright 2012 Wordnik, Inc.
Copyright 2012 GroupDocs.

@@ -5,0 +5,0 @@ Licensed under the Apache License, Version 2.0 (the "License");

#!/usr/bin/env python
"""
Copyright 2012 Wordnik, Inc.
Copyright 2012 GroupDocs.

@@ -30,3 +30,2 @@ Licensed under the Apache License, Version 2.0 (the "License");

'data': 'list[int]',
'graphSizeH': 'int',
'id': 'str',

@@ -36,4 +35,4 @@ 'acceptableValues': 'str',

'order': 'float',
'signatureFieldId': 'float',
'locations': 'list[SignatureEnvelopeFieldLocationInfo]',
'signatureFieldId': 'float',
'envelopeId': 'str',

@@ -44,3 +43,2 @@ 'name': 'str',

'defaultValue': 'str',
'graphSizeW': 'int',
'tooltip': 'str'

@@ -55,3 +53,2 @@

self.data = None # list[int]
self.graphSizeH = None # int
self.id = None # str

@@ -61,4 +58,4 @@ self.acceptableValues = None # str

self.order = None # float
self.signatureFieldId = None # float
self.locations = None # list[SignatureEnvelopeFieldLocationInfo]
self.signatureFieldId = None # float
self.envelopeId = None # str

@@ -69,4 +66,3 @@ self.name = None # str

self.defaultValue = None # str
self.graphSizeW = None # int
self.tooltip = None # str
#!/usr/bin/env python
"""
Copyright 2012 Wordnik, Inc.
Copyright 2012 GroupDocs.

@@ -5,0 +5,0 @@ Licensed under the Apache License, Version 2.0 (the "License");

#!/usr/bin/env python
"""
Copyright 2012 Wordnik, Inc.
Copyright 2012 GroupDocs.

@@ -5,0 +5,0 @@ Licensed under the Apache License, Version 2.0 (the "License");

#!/usr/bin/env python
"""
Copyright 2012 Wordnik, Inc.
Copyright 2012 GroupDocs.

@@ -5,0 +5,0 @@ Licensed under the Apache License, Version 2.0 (the "License");

#!/usr/bin/env python
"""
Copyright 2012 Wordnik, Inc.
Copyright 2012 GroupDocs.

@@ -5,0 +5,0 @@ Licensed under the Apache License, Version 2.0 (the "License");

#!/usr/bin/env python
"""
Copyright 2012 Wordnik, Inc.
Copyright 2012 GroupDocs.

@@ -5,0 +5,0 @@ Licensed under the Apache License, Version 2.0 (the "License");

#!/usr/bin/env python
"""
Copyright 2012 Wordnik, Inc.
Copyright 2012 GroupDocs.

@@ -5,0 +5,0 @@ Licensed under the Apache License, Version 2.0 (the "License");

#!/usr/bin/env python
"""
Copyright 2012 Wordnik, Inc.
Copyright 2012 GroupDocs.

@@ -5,0 +5,0 @@ Licensed under the Apache License, Version 2.0 (the "License");

#!/usr/bin/env python
"""
Copyright 2012 Wordnik, Inc.
Copyright 2012 GroupDocs.

@@ -31,3 +31,2 @@ Licensed under the Apache License, Version 2.0 (the "License");

'envelopeExpireTime': 'float',
'ownerId': 'float',
'reminderTime': 'float',

@@ -53,3 +52,2 @@ 'emailSubject': 'str',

self.envelopeExpireTime = None # float
self.ownerId = None # float
self.reminderTime = None # float

@@ -56,0 +54,0 @@ self.emailSubject = None # str

#!/usr/bin/env python
"""
Copyright 2012 Wordnik, Inc.
Copyright 2012 GroupDocs.

@@ -35,9 +35,8 @@ Licensed under the Apache License, Version 2.0 (the "License");

'email': 'str',
'userId': 'float',
'signatureLocation': 'str',
'signatureFingerprint': 'str',
'firstName': 'str',
'signatureHost': 'str',
'userGuid': 'str',
'roleId': 'float'
'roleId': 'float',
'signatureHost': 'str'

@@ -56,9 +55,8 @@ }

self.email = None # str
self.userId = None # float
self.signatureLocation = None # str
self.signatureFingerprint = None # str
self.firstName = None # str
self.signatureHost = None # str
self.userGuid = None # str
self.roleId = None # float
self.signatureHost = None # str
#!/usr/bin/env python
"""
Copyright 2012 Wordnik, Inc.
Copyright 2012 GroupDocs.

@@ -5,0 +5,0 @@ Licensed under the Apache License, Version 2.0 (the "License");

#!/usr/bin/env python
"""
Copyright 2012 Wordnik, Inc.
Copyright 2012 GroupDocs.

@@ -5,0 +5,0 @@ Licensed under the Apache License, Version 2.0 (the "License");

#!/usr/bin/env python
"""
Copyright 2012 Wordnik, Inc.
Copyright 2012 GroupDocs.

@@ -5,0 +5,0 @@ Licensed under the Apache License, Version 2.0 (the "License");

#!/usr/bin/env python
"""
Copyright 2012 Wordnik, Inc.
Copyright 2012 GroupDocs.

@@ -5,0 +5,0 @@ Licensed under the Apache License, Version 2.0 (the "License");

#!/usr/bin/env python
"""
Copyright 2012 Wordnik, Inc.
Copyright 2012 GroupDocs.

@@ -5,0 +5,0 @@ Licensed under the Apache License, Version 2.0 (the "License");

#!/usr/bin/env python
"""
Copyright 2012 Wordnik, Inc.
Copyright 2012 GroupDocs.

@@ -5,0 +5,0 @@ Licensed under the Apache License, Version 2.0 (the "License");

#!/usr/bin/env python
"""
Copyright 2012 Wordnik, Inc.
Copyright 2012 GroupDocs.

@@ -5,0 +5,0 @@ Licensed under the Apache License, Version 2.0 (the "License");

#!/usr/bin/env python
"""
Copyright 2012 Wordnik, Inc.
Copyright 2012 GroupDocs.

@@ -5,0 +5,0 @@ Licensed under the Apache License, Version 2.0 (the "License");

#!/usr/bin/env python
"""
Copyright 2012 Wordnik, Inc.
Copyright 2012 GroupDocs.

@@ -5,0 +5,0 @@ Licensed under the Apache License, Version 2.0 (the "License");

#!/usr/bin/env python
"""
Copyright 2012 Wordnik, Inc.
Copyright 2012 GroupDocs.

@@ -5,0 +5,0 @@ Licensed under the Apache License, Version 2.0 (the "License");

#!/usr/bin/env python
"""
Copyright 2012 Wordnik, Inc.
Copyright 2012 GroupDocs.

@@ -5,0 +5,0 @@ Licensed under the Apache License, Version 2.0 (the "License");

#!/usr/bin/env python
"""
Copyright 2012 Wordnik, Inc.
Copyright 2012 GroupDocs.

@@ -5,0 +5,0 @@ Licensed under the Apache License, Version 2.0 (the "License");

#!/usr/bin/env python
"""
Copyright 2012 Wordnik, Inc.
Copyright 2012 GroupDocs.

@@ -5,0 +5,0 @@ Licensed under the Apache License, Version 2.0 (the "License");

#!/usr/bin/env python
"""
Copyright 2012 Wordnik, Inc.
Copyright 2012 GroupDocs.

@@ -5,0 +5,0 @@ Licensed under the Apache License, Version 2.0 (the "License");

#!/usr/bin/env python
"""
Copyright 2012 Wordnik, Inc.
Copyright 2012 GroupDocs.

@@ -5,0 +5,0 @@ Licensed under the Apache License, Version 2.0 (the "License");

#!/usr/bin/env python
"""
Copyright 2012 Wordnik, Inc.
Copyright 2012 GroupDocs.

@@ -5,0 +5,0 @@ Licensed under the Apache License, Version 2.0 (the "License");

#!/usr/bin/env python
"""
Copyright 2012 Wordnik, Inc.
Copyright 2012 GroupDocs.

@@ -5,0 +5,0 @@ Licensed under the Apache License, Version 2.0 (the "License");

#!/usr/bin/env python
"""
Copyright 2012 Wordnik, Inc.
Copyright 2012 GroupDocs.

@@ -5,0 +5,0 @@ Licensed under the Apache License, Version 2.0 (the "License");

#!/usr/bin/env python
"""
Copyright 2012 Wordnik, Inc.
Copyright 2012 GroupDocs.

@@ -5,0 +5,0 @@ Licensed under the Apache License, Version 2.0 (the "License");

#!/usr/bin/env python
"""
Copyright 2012 Wordnik, Inc.
Copyright 2012 GroupDocs.

@@ -5,0 +5,0 @@ Licensed under the Apache License, Version 2.0 (the "License");

#!/usr/bin/env python
"""
Copyright 2012 Wordnik, Inc.
Copyright 2012 GroupDocs.

@@ -5,0 +5,0 @@ Licensed under the Apache License, Version 2.0 (the "License");

#!/usr/bin/env python
"""
Copyright 2012 Wordnik, Inc.
Copyright 2012 GroupDocs.

@@ -5,0 +5,0 @@ Licensed under the Apache License, Version 2.0 (the "License");

#!/usr/bin/env python
"""
Copyright 2012 Wordnik, Inc.
Copyright 2012 GroupDocs.

@@ -5,0 +5,0 @@ Licensed under the Apache License, Version 2.0 (the "License");

#!/usr/bin/env python
"""
Copyright 2012 Wordnik, Inc.
Copyright 2012 GroupDocs.

@@ -5,0 +5,0 @@ Licensed under the Apache License, Version 2.0 (the "License");

#!/usr/bin/env python
"""
Copyright 2012 Wordnik, Inc.
Copyright 2012 GroupDocs.

@@ -5,0 +5,0 @@ Licensed under the Apache License, Version 2.0 (the "License");

#!/usr/bin/env python
"""
Copyright 2012 Wordnik, Inc.
Copyright 2012 GroupDocs.

@@ -5,0 +5,0 @@ Licensed under the Apache License, Version 2.0 (the "License");

#!/usr/bin/env python
"""
Copyright 2012 Wordnik, Inc.
Copyright 2012 GroupDocs.

@@ -5,0 +5,0 @@ Licensed under the Apache License, Version 2.0 (the "License");

#!/usr/bin/env python
"""
Copyright 2012 Wordnik, Inc.
Copyright 2012 GroupDocs.

@@ -5,0 +5,0 @@ Licensed under the Apache License, Version 2.0 (the "License");

#!/usr/bin/env python
"""
Copyright 2012 Wordnik, Inc.
Copyright 2012 GroupDocs.

@@ -5,0 +5,0 @@ Licensed under the Apache License, Version 2.0 (the "License");

#!/usr/bin/env python
"""
Copyright 2012 Wordnik, Inc.
Copyright 2012 GroupDocs.

@@ -27,3 +27,2 @@ Licensed under the Apache License, Version 2.0 (the "License");

'canParticipantDownloadForm': 'bool',
'templateGuid': 'str',
'name': 'str',

@@ -36,5 +35,4 @@ 'fieldsInFinalFileName': 'str'

self.canParticipantDownloadForm = None # bool
self.templateGuid = None # str
self.name = None # str
self.fieldsInFinalFileName = None # str
#!/usr/bin/env python
"""
Copyright 2012 Wordnik, Inc.
Copyright 2012 GroupDocs.

@@ -5,0 +5,0 @@ Licensed under the Apache License, Version 2.0 (the "License");

#!/usr/bin/env python
"""
Copyright 2012 Wordnik, Inc.
Copyright 2012 GroupDocs.

@@ -5,0 +5,0 @@ Licensed under the Apache License, Version 2.0 (the "License");

#!/usr/bin/env python
"""
Copyright 2012 Wordnik, Inc.
Copyright 2012 GroupDocs.

@@ -5,0 +5,0 @@ Licensed under the Apache License, Version 2.0 (the "License");

#!/usr/bin/env python
"""
Copyright 2012 Wordnik, Inc.
Copyright 2012 GroupDocs.

@@ -5,0 +5,0 @@ Licensed under the Apache License, Version 2.0 (the "License");

#!/usr/bin/env python
"""
Copyright 2012 Wordnik, Inc.
Copyright 2012 GroupDocs.

@@ -5,0 +5,0 @@ Licensed under the Apache License, Version 2.0 (the "License");

#!/usr/bin/env python
"""
Copyright 2012 Wordnik, Inc.
Copyright 2012 GroupDocs.

@@ -5,0 +5,0 @@ Licensed under the Apache License, Version 2.0 (the "License");

#!/usr/bin/env python
"""
Copyright 2012 Wordnik, Inc.
Copyright 2012 GroupDocs.

@@ -5,0 +5,0 @@ Licensed under the Apache License, Version 2.0 (the "License");

#!/usr/bin/env python
"""
Copyright 2012 Wordnik, Inc.
Copyright 2012 GroupDocs.

@@ -5,0 +5,0 @@ Licensed under the Apache License, Version 2.0 (the "License");

#!/usr/bin/env python
"""
Copyright 2012 Wordnik, Inc.
Copyright 2012 GroupDocs.

@@ -5,0 +5,0 @@ Licensed under the Apache License, Version 2.0 (the "License");

#!/usr/bin/env python
"""
Copyright 2012 Wordnik, Inc.
Copyright 2012 GroupDocs.

@@ -5,0 +5,0 @@ Licensed under the Apache License, Version 2.0 (the "License");

#!/usr/bin/env python
"""
Copyright 2012 Wordnik, Inc.
Copyright 2012 GroupDocs.

@@ -5,0 +5,0 @@ Licensed under the Apache License, Version 2.0 (the "License");

#!/usr/bin/env python
"""
Copyright 2012 Wordnik, Inc.
Copyright 2012 GroupDocs.

@@ -5,0 +5,0 @@ Licensed under the Apache License, Version 2.0 (the "License");

#!/usr/bin/env python
"""
Copyright 2012 Wordnik, Inc.
Copyright 2012 GroupDocs.

@@ -5,0 +5,0 @@ Licensed under the Apache License, Version 2.0 (the "License");

#!/usr/bin/env python
"""
Copyright 2012 Wordnik, Inc.
Copyright 2012 GroupDocs.

@@ -5,0 +5,0 @@ Licensed under the Apache License, Version 2.0 (the "License");

#!/usr/bin/env python
"""
Copyright 2012 Wordnik, Inc.
Copyright 2012 GroupDocs.

@@ -5,0 +5,0 @@ Licensed under the Apache License, Version 2.0 (the "License");

#!/usr/bin/env python
"""
Copyright 2012 Wordnik, Inc.
Copyright 2012 GroupDocs.

@@ -5,0 +5,0 @@ Licensed under the Apache License, Version 2.0 (the "License");

#!/usr/bin/env python
"""
Copyright 2012 Wordnik, Inc.
Copyright 2012 GroupDocs.

@@ -5,0 +5,0 @@ Licensed under the Apache License, Version 2.0 (the "License");

#!/usr/bin/env python
"""
Copyright 2012 Wordnik, Inc.
Copyright 2012 GroupDocs.

@@ -5,0 +5,0 @@ Licensed under the Apache License, Version 2.0 (the "License");

#!/usr/bin/env python
"""
Copyright 2012 Wordnik, Inc.
Copyright 2012 GroupDocs.

@@ -5,0 +5,0 @@ Licensed under the Apache License, Version 2.0 (the "License");

#!/usr/bin/env python
"""
Copyright 2012 Wordnik, Inc.
Copyright 2012 GroupDocs.

@@ -5,0 +5,0 @@ Licensed under the Apache License, Version 2.0 (the "License");

#!/usr/bin/env python
"""
Copyright 2012 Wordnik, Inc.
Copyright 2012 GroupDocs.

@@ -5,0 +5,0 @@ Licensed under the Apache License, Version 2.0 (the "License");

#!/usr/bin/env python
"""
Copyright 2012 Wordnik, Inc.
Copyright 2012 GroupDocs.

@@ -5,0 +5,0 @@ Licensed under the Apache License, Version 2.0 (the "License");

#!/usr/bin/env python
"""
Copyright 2012 Wordnik, Inc.
Copyright 2012 GroupDocs.

@@ -5,0 +5,0 @@ Licensed under the Apache License, Version 2.0 (the "License");

#!/usr/bin/env python
"""
Copyright 2012 Wordnik, Inc.
Copyright 2012 GroupDocs.

@@ -5,0 +5,0 @@ Licensed under the Apache License, Version 2.0 (the "License");

#!/usr/bin/env python
"""
Copyright 2012 Wordnik, Inc.
Copyright 2012 GroupDocs.

@@ -5,0 +5,0 @@ Licensed under the Apache License, Version 2.0 (the "License");

#!/usr/bin/env python
"""
Copyright 2012 Wordnik, Inc.
Copyright 2012 GroupDocs.

@@ -5,0 +5,0 @@ Licensed under the Apache License, Version 2.0 (the "License");

#!/usr/bin/env python
"""
Copyright 2012 Wordnik, Inc.
Copyright 2012 GroupDocs.

@@ -5,0 +5,0 @@ Licensed under the Apache License, Version 2.0 (the "License");

#!/usr/bin/env python
"""
Copyright 2012 Wordnik, Inc.
Copyright 2012 GroupDocs.

@@ -5,0 +5,0 @@ Licensed under the Apache License, Version 2.0 (the "License");

#!/usr/bin/env python
"""
Copyright 2012 Wordnik, Inc.
Copyright 2012 GroupDocs.

@@ -29,16 +29,11 @@ Licensed under the Apache License, Version 2.0 (the "License");

'mandatory': 'bool',
'graphSizeH': 'int',
'textRows': 'float',
'id': 'str',
'templateId': 'str',
'acceptableValues': 'str',
'input': 'float',
'textColumns': 'float',
'recipientId': 'str',
'order': 'float',
'signatureFieldId': 'float',
'locations': 'list[SignatureTemplateFieldLocationInfo]',
'signatureFieldId': 'float',
'name': 'str',
'defaultValue': 'str',
'graphSizeW': 'int',
'tooltip': 'str'

@@ -52,17 +47,12 @@

self.mandatory = None # bool
self.graphSizeH = None # int
self.textRows = None # float
self.id = None # str
self.templateId = None # str
self.acceptableValues = None # str
self.input = None # float
self.textColumns = None # float
self.recipientId = None # str
self.order = None # float
self.signatureFieldId = None # float
self.locations = None # list[SignatureTemplateFieldLocationInfo]
self.signatureFieldId = None # float
self.name = None # str
self.defaultValue = None # str
self.graphSizeW = None # int
self.tooltip = None # str
#!/usr/bin/env python
"""
Copyright 2012 Wordnik, Inc.
Copyright 2012 GroupDocs.

@@ -5,0 +5,0 @@ Licensed under the Apache License, Version 2.0 (the "License");

#!/usr/bin/env python
"""
Copyright 2012 Wordnik, Inc.
Copyright 2012 GroupDocs.

@@ -5,0 +5,0 @@ Licensed under the Apache License, Version 2.0 (the "License");

#!/usr/bin/env python
"""
Copyright 2012 Wordnik, Inc.
Copyright 2012 GroupDocs.

@@ -5,0 +5,0 @@ Licensed under the Apache License, Version 2.0 (the "License");

#!/usr/bin/env python
"""
Copyright 2012 Wordnik, Inc.
Copyright 2012 GroupDocs.

@@ -5,0 +5,0 @@ Licensed under the Apache License, Version 2.0 (the "License");

#!/usr/bin/env python
"""
Copyright 2012 Wordnik, Inc.
Copyright 2012 GroupDocs.

@@ -5,0 +5,0 @@ Licensed under the Apache License, Version 2.0 (the "License");

#!/usr/bin/env python
"""
Copyright 2012 Wordnik, Inc.
Copyright 2012 GroupDocs.

@@ -5,0 +5,0 @@ Licensed under the Apache License, Version 2.0 (the "License");

#!/usr/bin/env python
"""
Copyright 2012 Wordnik, Inc.
Copyright 2012 GroupDocs.

@@ -5,0 +5,0 @@ Licensed under the Apache License, Version 2.0 (the "License");

#!/usr/bin/env python
"""
Copyright 2012 Wordnik, Inc.
Copyright 2012 GroupDocs.

@@ -28,3 +28,2 @@ Licensed under the Apache License, Version 2.0 (the "License");

'recipients': 'list[SignatureTemplateRecipientInfo]',
'ownerId': 'float',
'reminderTime': 'float',

@@ -47,3 +46,2 @@ 'emailSubject': 'str',

self.recipients = None # list[SignatureTemplateRecipientInfo]
self.ownerId = None # float
self.reminderTime = None # float

@@ -50,0 +48,0 @@ self.emailSubject = None # str

#!/usr/bin/env python
"""
Copyright 2012 Wordnik, Inc.
Copyright 2012 GroupDocs.

@@ -5,0 +5,0 @@ Licensed under the Apache License, Version 2.0 (the "License");

#!/usr/bin/env python
"""
Copyright 2012 Wordnik, Inc.
Copyright 2012 GroupDocs.

@@ -5,0 +5,0 @@ Licensed under the Apache License, Version 2.0 (the "License");

#!/usr/bin/env python
"""
Copyright 2012 Wordnik, Inc.
Copyright 2012 GroupDocs.

@@ -5,0 +5,0 @@ Licensed under the Apache License, Version 2.0 (the "License");

#!/usr/bin/env python
"""
Copyright 2012 Wordnik, Inc.
Copyright 2012 GroupDocs.

@@ -5,0 +5,0 @@ Licensed under the Apache License, Version 2.0 (the "License");

#!/usr/bin/env python
"""
Copyright 2012 Wordnik, Inc.
Copyright 2012 GroupDocs.

@@ -5,0 +5,0 @@ Licensed under the Apache License, Version 2.0 (the "License");

#!/usr/bin/env python
"""
Copyright 2012 Wordnik, Inc.
Copyright 2012 GroupDocs.

@@ -5,0 +5,0 @@ Licensed under the Apache License, Version 2.0 (the "License");

#!/usr/bin/env python
"""
Copyright 2012 Wordnik, Inc.
Copyright 2012 GroupDocs.

@@ -5,0 +5,0 @@ Licensed under the Apache License, Version 2.0 (the "License");

#!/usr/bin/env python
"""
Copyright 2012 Wordnik, Inc.
Copyright 2012 GroupDocs.

@@ -5,0 +5,0 @@ Licensed under the Apache License, Version 2.0 (the "License");

#!/usr/bin/env python
"""
Copyright 2012 Wordnik, Inc.
Copyright 2012 GroupDocs.

@@ -5,0 +5,0 @@ Licensed under the Apache License, Version 2.0 (the "License");

#!/usr/bin/env python
"""
Copyright 2012 Wordnik, Inc.
Copyright 2012 GroupDocs.

@@ -5,0 +5,0 @@ Licensed under the Apache License, Version 2.0 (the "License");

#!/usr/bin/env python
"""
Copyright 2012 Wordnik, Inc.
Copyright 2012 GroupDocs.

@@ -5,0 +5,0 @@ Licensed under the Apache License, Version 2.0 (the "License");

#!/usr/bin/env python
"""
Copyright 2012 Wordnik, Inc.
Copyright 2012 GroupDocs.

@@ -5,0 +5,0 @@ Licensed under the Apache License, Version 2.0 (the "License");

#!/usr/bin/env python
"""
Copyright 2012 Wordnik, Inc.
Copyright 2012 GroupDocs.

@@ -5,0 +5,0 @@ Licensed under the Apache License, Version 2.0 (the "License");

#!/usr/bin/env python
"""
Copyright 2012 Wordnik, Inc.
Copyright 2012 GroupDocs.

@@ -5,0 +5,0 @@ Licensed under the Apache License, Version 2.0 (the "License");

#!/usr/bin/env python
"""
Copyright 2012 Wordnik, Inc.
Copyright 2012 GroupDocs.

@@ -5,0 +5,0 @@ Licensed under the Apache License, Version 2.0 (the "License");

#!/usr/bin/env python
"""
Copyright 2012 Wordnik, Inc.
Copyright 2012 GroupDocs.

@@ -5,0 +5,0 @@ Licensed under the Apache License, Version 2.0 (the "License");

#!/usr/bin/env python
"""
Copyright 2012 Wordnik, Inc.
Copyright 2012 GroupDocs.

@@ -5,0 +5,0 @@ Licensed under the Apache License, Version 2.0 (the "License");

#!/usr/bin/env python
"""
Copyright 2012 Wordnik, Inc.
Copyright 2012 GroupDocs.

@@ -5,0 +5,0 @@ Licensed under the Apache License, Version 2.0 (the "License");

#!/usr/bin/env python
"""
Copyright 2012 Wordnik, Inc.
Copyright 2012 GroupDocs.

@@ -5,0 +5,0 @@ Licensed under the Apache License, Version 2.0 (the "License");

#!/usr/bin/env python
"""
Copyright 2012 Wordnik, Inc.
Copyright 2012 GroupDocs.

@@ -5,0 +5,0 @@ Licensed under the Apache License, Version 2.0 (the "License");

#!/usr/bin/env python
"""
Copyright 2012 Wordnik, Inc.
Copyright 2012 GroupDocs.

@@ -5,0 +5,0 @@ Licensed under the Apache License, Version 2.0 (the "License");

#!/usr/bin/env python
"""
Copyright 2012 Wordnik, Inc.
Copyright 2012 GroupDocs.

@@ -5,0 +5,0 @@ Licensed under the Apache License, Version 2.0 (the "License");

#!/usr/bin/env python
"""
Copyright 2012 Wordnik, Inc.
Copyright 2012 GroupDocs.

@@ -5,0 +5,0 @@ Licensed under the Apache License, Version 2.0 (the "License");

#!/usr/bin/env python
"""
Copyright 2012 Wordnik, Inc.
Copyright 2012 GroupDocs.

@@ -5,0 +5,0 @@ Licensed under the Apache License, Version 2.0 (the "License");

#!/usr/bin/env python
"""
Copyright 2012 Wordnik, Inc.
Copyright 2012 GroupDocs.

@@ -5,0 +5,0 @@ Licensed under the Apache License, Version 2.0 (the "License");

#!/usr/bin/env python
"""
Copyright 2012 Wordnik, Inc.
Copyright 2012 GroupDocs.

@@ -5,0 +5,0 @@ Licensed under the Apache License, Version 2.0 (the "License");

#!/usr/bin/env python
"""
Copyright 2012 Wordnik, Inc.
Copyright 2012 GroupDocs.

@@ -5,0 +5,0 @@ Licensed under the Apache License, Version 2.0 (the "License");

#!/usr/bin/env python
"""
Copyright 2012 Wordnik, Inc.
Copyright 2012 GroupDocs.

@@ -5,0 +5,0 @@ Licensed under the Apache License, Version 2.0 (the "License");

#!/usr/bin/env python
"""
Copyright 2012 Wordnik, Inc.
Copyright 2012 GroupDocs.

@@ -5,0 +5,0 @@ Licensed under the Apache License, Version 2.0 (the "License");

#!/usr/bin/env python
"""
Copyright 2012 Wordnik, Inc.
Copyright 2012 GroupDocs.

@@ -5,0 +5,0 @@ Licensed under the Apache License, Version 2.0 (the "License");

#!/usr/bin/env python
"""
Copyright 2012 Wordnik, Inc.
Copyright 2012 GroupDocs.

@@ -5,0 +5,0 @@ Licensed under the Apache License, Version 2.0 (the "License");

#!/usr/bin/env python
"""
Copyright 2012 Wordnik, Inc.
Copyright 2012 GroupDocs.

@@ -5,0 +5,0 @@ Licensed under the Apache License, Version 2.0 (the "License");

#!/usr/bin/env python
"""
Copyright 2012 Wordnik, Inc.
Copyright 2012 GroupDocs.

@@ -5,0 +5,0 @@ Licensed under the Apache License, Version 2.0 (the "License");

#!/usr/bin/env python
"""
Copyright 2012 Wordnik, Inc.
Copyright 2012 GroupDocs.

@@ -5,0 +5,0 @@ Licensed under the Apache License, Version 2.0 (the "License");

#!/usr/bin/env python
"""
Copyright 2012 Wordnik, Inc.
Copyright 2012 GroupDocs.

@@ -5,0 +5,0 @@ Licensed under the Apache License, Version 2.0 (the "License");

#!/usr/bin/env python
"""
Copyright 2012 Wordnik, Inc.
Copyright 2012 GroupDocs.

@@ -5,0 +5,0 @@ Licensed under the Apache License, Version 2.0 (the "License");

#!/usr/bin/env python
"""
Copyright 2012 Wordnik, Inc.
Copyright 2012 GroupDocs.

@@ -5,0 +5,0 @@ Licensed under the Apache License, Version 2.0 (the "License");

#!/usr/bin/env python
"""
Copyright 2012 Wordnik, Inc.
Copyright 2012 GroupDocs.

@@ -5,0 +5,0 @@ Licensed under the Apache License, Version 2.0 (the "License");

#!/usr/bin/env python
"""
Copyright 2012 Wordnik, Inc.
Copyright 2012 GroupDocs.

@@ -5,0 +5,0 @@ Licensed under the Apache License, Version 2.0 (the "License");

#!/usr/bin/env python
"""
Copyright 2012 Wordnik, Inc.
Copyright 2012 GroupDocs.

@@ -5,0 +5,0 @@ Licensed under the Apache License, Version 2.0 (the "License");

#!/usr/bin/env python
"""
Copyright 2012 Wordnik, Inc.
Copyright 2012 GroupDocs.

@@ -5,0 +5,0 @@ Licensed under the Apache License, Version 2.0 (the "License");

#!/usr/bin/env python
"""
Copyright 2012 Wordnik, Inc.
Copyright 2012 GroupDocs.

@@ -5,0 +5,0 @@ Licensed under the Apache License, Version 2.0 (the "License");

#!/usr/bin/env python
"""
Copyright 2012 Wordnik, Inc.
Copyright 2012 GroupDocs.

@@ -5,0 +5,0 @@ Licensed under the Apache License, Version 2.0 (the "License");

#!/usr/bin/env python
"""
WordAPI.py
Copyright 2012 Wordnik, Inc.
Copyright 2012 GroupDocs.

@@ -24,10 +23,20 @@ Licensed under the Apache License, Version 2.0 (the "License");

from models import *
from groupdocs.FileStream import FileStream
from groupdocs.ApiClient import ApiException
class PostApi(object):
def __init__(self, apiClient):
self.apiClient = apiClient
self.apiClient = apiClient
self.__basePath = "https://api.groupdocs.com/v2.0"
@property
def basePath(self):
return self.__basePath
@basePath.setter
def basePath(self, value):
self.__basePath = value
def RenameByPost(self, userId, fileId, newName, **kwargs):

@@ -43,3 +52,4 @@ """Rename by post

"""
if( userId == None or fileId == None or newName == None ):
raise ApiException(400, "missing required parameters")
allParams = ['userId', 'fileId', 'newName']

@@ -54,3 +64,6 @@

resourcePath = '/post/file.rename?user_id={userId}&file_id={fileId}&new_name={newName}'.replace('*', '')
resourcePath = '/post/file.rename?user_id={userId}&file_id={fileId}&new_name={newName}'.replace('*', '')
pos = resourcePath.find("?")
if pos != -1:
resourcePath = resourcePath[0:pos]
resourcePath = resourcePath.replace('{format}', 'json')

@@ -63,16 +76,9 @@ method = 'POST'

if ('userId' in params):
replacement = str(self.apiClient.toPathValue(params['userId']))
resourcePath = resourcePath.replace('{' + 'userId' + '}',
replacement)
queryParams['user_id'] = self.apiClient.toPathValue(params['userId'])
if ('fileId' in params):
replacement = str(self.apiClient.toPathValue(params['fileId']))
resourcePath = resourcePath.replace('{' + 'fileId' + '}',
replacement)
queryParams['file_id'] = self.apiClient.toPathValue(params['fileId'])
if ('newName' in params):
replacement = str(self.apiClient.toPathValue(params['newName']))
resourcePath = resourcePath.replace('{' + 'newName' + '}',
replacement)
queryParams['new_name'] = self.apiClient.toPathValue(params['newName'])
postData = (params['body'] if 'body' in params else None)
response = self.apiClient.callAPI(resourcePath, method, queryParams,
response = self.apiClient.callAPI(self.basePath, resourcePath, method, queryParams,
postData, headerParams)

@@ -96,3 +102,4 @@

"""
if( userId == None or fileId == None ):
raise ApiException(400, "missing required parameters")
allParams = ['userId', 'fileId']

@@ -107,3 +114,6 @@

resourcePath = '/post/file.delete?user_id={userId}&file_id={fileId}'.replace('*', '')
resourcePath = '/post/file.delete?user_id={userId}&file_id={fileId}'.replace('*', '')
pos = resourcePath.find("?")
if pos != -1:
resourcePath = resourcePath[0:pos]
resourcePath = resourcePath.replace('{format}', 'json')

@@ -116,12 +126,7 @@ method = 'POST'

if ('userId' in params):
replacement = str(self.apiClient.toPathValue(params['userId']))
resourcePath = resourcePath.replace('{' + 'userId' + '}',
replacement)
queryParams['user_id'] = self.apiClient.toPathValue(params['userId'])
if ('fileId' in params):
replacement = str(self.apiClient.toPathValue(params['fileId']))
resourcePath = resourcePath.replace('{' + 'fileId' + '}',
replacement)
queryParams['file_id'] = self.apiClient.toPathValue(params['fileId'])
postData = (params['body'] if 'body' in params else None)
response = self.apiClient.callAPI(resourcePath, method, queryParams,
response = self.apiClient.callAPI(self.basePath, resourcePath, method, queryParams,
postData, headerParams)

@@ -145,3 +150,4 @@

"""
if( userId == None or path == None ):
raise ApiException(400, "missing required parameters")
allParams = ['userId', 'path']

@@ -156,3 +162,6 @@

resourcePath = '/post/file.delete.in?user_id={userId}&path={path}'.replace('*', '')
resourcePath = '/post/file.delete.in?user_id={userId}&path={path}'.replace('*', '')
pos = resourcePath.find("?")
if pos != -1:
resourcePath = resourcePath[0:pos]
resourcePath = resourcePath.replace('{format}', 'json')

@@ -165,12 +174,7 @@ method = 'POST'

if ('userId' in params):
replacement = str(self.apiClient.toPathValue(params['userId']))
resourcePath = resourcePath.replace('{' + 'userId' + '}',
replacement)
queryParams['user_id'] = self.apiClient.toPathValue(params['userId'])
if ('path' in params):
replacement = str(self.apiClient.toPathValue(params['path']))
resourcePath = resourcePath.replace('{' + 'path' + '}',
replacement)
queryParams['path'] = self.apiClient.toPathValue(params['path'])
postData = (params['body'] if 'body' in params else None)
response = self.apiClient.callAPI(resourcePath, method, queryParams,
response = self.apiClient.callAPI(self.basePath, resourcePath, method, queryParams,
postData, headerParams)

@@ -195,3 +199,4 @@

"""
if( userId == None or fileId == None or archiveType == None ):
raise ApiException(400, "missing required parameters")
allParams = ['userId', 'fileId', 'archiveType']

@@ -206,3 +211,6 @@

resourcePath = '/post/file.compress?user_id={userId}&file_id={fileId}&archive_type={archiveType}'.replace('*', '')
resourcePath = '/post/file.compress?user_id={userId}&file_id={fileId}&archive_type={archiveType}'.replace('*', '')
pos = resourcePath.find("?")
if pos != -1:
resourcePath = resourcePath[0:pos]
resourcePath = resourcePath.replace('{format}', 'json')

@@ -215,16 +223,9 @@ method = 'POST'

if ('userId' in params):
replacement = str(self.apiClient.toPathValue(params['userId']))
resourcePath = resourcePath.replace('{' + 'userId' + '}',
replacement)
queryParams['user_id'] = self.apiClient.toPathValue(params['userId'])
if ('fileId' in params):
replacement = str(self.apiClient.toPathValue(params['fileId']))
resourcePath = resourcePath.replace('{' + 'fileId' + '}',
replacement)
queryParams['file_id'] = self.apiClient.toPathValue(params['fileId'])
if ('archiveType' in params):
replacement = str(self.apiClient.toPathValue(params['archiveType']))
resourcePath = resourcePath.replace('{' + 'archiveType' + '}',
replacement)
queryParams['archive_type'] = self.apiClient.toPathValue(params['archiveType'])
postData = (params['body'] if 'body' in params else None)
response = self.apiClient.callAPI(resourcePath, method, queryParams,
response = self.apiClient.callAPI(self.basePath, resourcePath, method, queryParams,
postData, headerParams)

@@ -231,0 +232,0 @@

#!/usr/bin/env python
"""
WordAPI.py
Copyright 2012 Wordnik, Inc.
Copyright 2012 GroupDocs.

@@ -24,11 +23,21 @@ Licensed under the Apache License, Version 2.0 (the "License");

from models import *
from groupdocs.FileStream import FileStream
from groupdocs.ApiClient import ApiException
class SharedApi(object):
def __init__(self, apiClient):
self.apiClient = apiClient
self.apiClient = apiClient
self.__basePath = "https://api.groupdocs.com/v2.0"
@property
def basePath(self):
return self.__basePath
def Download(self, guid, fileName, render, **kwargs):
@basePath.setter
def basePath(self, value):
self.__basePath = value
def Download(self, guid, fileName, **kwargs):
"""Download

@@ -41,5 +50,6 @@

Returns: str
Returns: stream
"""
if( guid == None or fileName == None ):
raise ApiException(400, "missing required parameters")
allParams = ['guid', 'fileName', 'render']

@@ -54,3 +64,6 @@

resourcePath = '/shared/files/{guid}?filename={fileName}&render={render}'.replace('*', '')
resourcePath = '/shared/files/{guid}?filename={fileName}&render={render}'.replace('*', '')
pos = resourcePath.find("?")
if pos != -1:
resourcePath = resourcePath[0:pos]
resourcePath = resourcePath.replace('{format}', 'json')

@@ -62,2 +75,6 @@ method = 'GET'

if ('fileName' in params):
queryParams['filename'] = self.apiClient.toPathValue(params['fileName'])
if ('render' in params):
queryParams['render'] = self.apiClient.toPathValue(params['render'])
if ('guid' in params):

@@ -67,22 +84,6 @@ replacement = str(self.apiClient.toPathValue(params['guid']))

replacement)
if ('fileName' in params):
replacement = str(self.apiClient.toPathValue(params['fileName']))
resourcePath = resourcePath.replace('{' + 'fileName' + '}',
replacement)
if ('render' in params):
replacement = str(self.apiClient.toPathValue(params['render']))
resourcePath = resourcePath.replace('{' + 'render' + '}',
replacement)
postData = (params['body'] if 'body' in params else None)
response = self.apiClient.callAPI(resourcePath, method, queryParams,
postData, headerParams)
if not response:
return None
responseObject = self.apiClient.deserialize(response, 'str')
return responseObject
return self.apiClient.callAPI(self.basePath, resourcePath, method, queryParams,
postData, headerParams, FileStream)
def GetXml(self, guid, **kwargs):

@@ -94,5 +95,6 @@ """Get xml

Returns: str
Returns: stream
"""
if( guid == None ):
raise ApiException(400, "missing required parameters")
allParams = ['guid']

@@ -119,13 +121,5 @@

postData = (params['body'] if 'body' in params else None)
response = self.apiClient.callAPI(resourcePath, method, queryParams,
postData, headerParams)
if not response:
return None
responseObject = self.apiClient.deserialize(response, 'str')
return responseObject
return self.apiClient.callAPI(self.basePath, resourcePath, method, queryParams,
postData, headerParams, FileStream)
def GetPackage(self, path, **kwargs):

@@ -137,5 +131,6 @@ """Get package

Returns: str
Returns: stream
"""
if( path == None ):
raise ApiException(400, "missing required parameters")
allParams = ['path']

@@ -162,15 +157,7 @@

postData = (params['body'] if 'body' in params else None)
response = self.apiClient.callAPI(resourcePath, method, queryParams,
postData, headerParams)
if not response:
return None
responseObject = self.apiClient.deserialize(response, 'str')
return responseObject
return self.apiClient.callAPI(self.basePath, resourcePath, method, queryParams,
postData, headerParams, FileStream)
#!/usr/bin/env python
"""
WordAPI.py
Copyright 2012 Wordnik, Inc.
Copyright 2012 GroupDocs.

@@ -24,10 +23,20 @@ Licensed under the Apache License, Version 2.0 (the "License");

from models import *
from groupdocs.FileStream import FileStream
from groupdocs.ApiClient import ApiException
class StorageApi(object):
def __init__(self, apiClient):
self.apiClient = apiClient
self.apiClient = apiClient
self.__basePath = "https://api.groupdocs.com/v2.0"
@property
def basePath(self):
return self.__basePath
@basePath.setter
def basePath(self, value):
self.__basePath = value
def GetStorageInfo(self, userId, **kwargs):

@@ -41,3 +50,4 @@ """Get storage info

"""
if( userId == None ):
raise ApiException(400, "missing required parameters")
allParams = ['userId']

@@ -64,4 +74,3 @@

postData = (params['body'] if 'body' in params else None)
response = self.apiClient.callAPI(resourcePath, method, queryParams,
response = self.apiClient.callAPI(self.basePath, resourcePath, method, queryParams,
postData, headerParams)

@@ -76,3 +85,3 @@

def ListEntities(self, userId, path, pageIndex, pageSize, orderBy, orderAsc, filter, fileTypes, extended, **kwargs):
def ListEntities(self, userId, path, **kwargs):
"""List entities

@@ -93,3 +102,4 @@

"""
if( userId == None or path == None ):
raise ApiException(400, "missing required parameters")
allParams = ['userId', 'path', 'pageIndex', 'pageSize', 'orderBy', 'orderAsc', 'filter', 'fileTypes', 'extended']

@@ -104,3 +114,6 @@

resourcePath = '/storage/{userId}/folders/{*path}?page={pageIndex}&count={pageSize}&order_by={orderBy}&order_asc={orderAsc}&filter={filter}&file_types={fileTypes}&extended={extended}'.replace('*', '')
resourcePath = '/storage/{userId}/folders/{*path}?page={pageIndex}&count={pageSize}&order_by={orderBy}&order_asc={orderAsc}&filter={filter}&file_types={fileTypes}&extended={extended}'.replace('*', '')
pos = resourcePath.find("?")
if pos != -1:
resourcePath = resourcePath[0:pos]
resourcePath = resourcePath.replace('{format}', 'json')

@@ -112,2 +125,16 @@ method = 'GET'

if ('pageIndex' in params):
queryParams['page'] = self.apiClient.toPathValue(params['pageIndex'])
if ('pageSize' in params):
queryParams['count'] = self.apiClient.toPathValue(params['pageSize'])
if ('orderBy' in params):
queryParams['order_by'] = self.apiClient.toPathValue(params['orderBy'])
if ('orderAsc' in params):
queryParams['order_asc'] = self.apiClient.toPathValue(params['orderAsc'])
if ('filter' in params):
queryParams['filter'] = self.apiClient.toPathValue(params['filter'])
if ('fileTypes' in params):
queryParams['file_types'] = self.apiClient.toPathValue(params['fileTypes'])
if ('extended' in params):
queryParams['extended'] = self.apiClient.toPathValue(params['extended'])
if ('userId' in params):

@@ -121,33 +148,4 @@ replacement = str(self.apiClient.toPathValue(params['userId']))

replacement)
if ('pageIndex' in params):
replacement = str(self.apiClient.toPathValue(params['pageIndex']))
resourcePath = resourcePath.replace('{' + 'pageIndex' + '}',
replacement)
if ('pageSize' in params):
replacement = str(self.apiClient.toPathValue(params['pageSize']))
resourcePath = resourcePath.replace('{' + 'pageSize' + '}',
replacement)
if ('orderBy' in params):
replacement = str(self.apiClient.toPathValue(params['orderBy']))
resourcePath = resourcePath.replace('{' + 'orderBy' + '}',
replacement)
if ('orderAsc' in params):
replacement = str(self.apiClient.toPathValue(params['orderAsc']))
resourcePath = resourcePath.replace('{' + 'orderAsc' + '}',
replacement)
if ('filter' in params):
replacement = str(self.apiClient.toPathValue(params['filter']))
resourcePath = resourcePath.replace('{' + 'filter' + '}',
replacement)
if ('fileTypes' in params):
replacement = str(self.apiClient.toPathValue(params['fileTypes']))
resourcePath = resourcePath.replace('{' + 'fileTypes' + '}',
replacement)
if ('extended' in params):
replacement = str(self.apiClient.toPathValue(params['extended']))
resourcePath = resourcePath.replace('{' + 'extended' + '}',
replacement)
postData = (params['body'] if 'body' in params else None)
response = self.apiClient.callAPI(resourcePath, method, queryParams,
response = self.apiClient.callAPI(self.basePath, resourcePath, method, queryParams,
postData, headerParams)

@@ -169,5 +167,6 @@

Returns: str
Returns: stream
"""
if( userId == None or fileId == None ):
raise ApiException(400, "missing required parameters")
allParams = ['userId', 'fileId']

@@ -198,13 +197,5 @@

postData = (params['body'] if 'body' in params else None)
response = self.apiClient.callAPI(resourcePath, method, queryParams,
postData, headerParams)
if not response:
return None
responseObject = self.apiClient.deserialize(response, 'str')
return responseObject
return self.apiClient.callAPI(self.basePath, resourcePath, method, queryParams,
postData, headerParams, FileStream)
def GetSharedFile(self, userEmail, filePath, **kwargs):

@@ -217,5 +208,6 @@ """Get shared file

Returns: str
Returns: stream
"""
if( userEmail == None or filePath == None ):
raise ApiException(400, "missing required parameters")
allParams = ['userEmail', 'filePath']

@@ -246,4 +238,49 @@

postData = (params['body'] if 'body' in params else None)
return self.apiClient.callAPI(self.basePath, resourcePath, method, queryParams,
postData, headerParams, FileStream)
def Upload(self, userId, path, body, **kwargs):
"""Upload
response = self.apiClient.callAPI(resourcePath, method, queryParams,
Args:
userId, str: User GUID (required)
path, str: Path (required)
description, str: Description (optional)
body, stream: Stream (required)
Returns: UploadResponse
"""
if( userId == None or path == None or body == None ):
raise ApiException(400, "missing required parameters")
allParams = ['userId', 'path', 'description', 'body']
params = locals()
for (key, val) in params['kwargs'].iteritems():
if key not in allParams:
raise TypeError("Got an unexpected keyword argument '%s' to method Upload" % key)
params[key] = val
del params['kwargs']
resourcePath = '/storage/{userId}/folders/{*path}?description={description}'.replace('*', '')
pos = resourcePath.find("?")
if pos != -1:
resourcePath = resourcePath[0:pos]
resourcePath = resourcePath.replace('{format}', 'json')
method = 'POST'
queryParams = {}
headerParams = {}
if ('description' in params):
queryParams['description'] = self.apiClient.toPathValue(params['description'])
if ('userId' in params):
replacement = str(self.apiClient.toPathValue(params['userId']))
resourcePath = resourcePath.replace('{' + 'userId' + '}',
replacement)
if ('path' in params):
replacement = str(self.apiClient.toPathValue(params['path']))
resourcePath = resourcePath.replace('{' + 'path' + '}',
replacement)
postData = (params['body'] if 'body' in params else None)
response = self.apiClient.callAPI(self.basePath, resourcePath, method, queryParams,
postData, headerParams)

@@ -254,8 +291,8 @@

responseObject = self.apiClient.deserialize(response, 'str')
responseObject = self.apiClient.deserialize(response, 'UploadResponse')
return responseObject
def Upload(self, userId, path, description, body, **kwargs):
"""Upload
def Decompress(self, userId, path, body, **kwargs):
"""UploadAndUnzip

@@ -266,2 +303,3 @@ Args:

description, str: Description (optional)
archiveType, str: Archive type (optional)
body, stream: Stream (required)

@@ -271,13 +309,17 @@

"""
if( userId == None or path == None or body == None ):
raise ApiException(400, "missing required parameters")
allParams = ['userId', 'path', 'description', 'archiveType', 'body']
allParams = ['userId', 'path', 'description', 'body']
params = locals()
for (key, val) in params['kwargs'].iteritems():
if key not in allParams:
raise TypeError("Got an unexpected keyword argument '%s' to method Upload" % key)
raise TypeError("Got an unexpected keyword argument '%s' to method Decompress" % key)
params[key] = val
del params['kwargs']
resourcePath = '/storage/{userId}/folders/{*path}?description={description}'.replace('*', '')
resourcePath = '/storage/{userId}/decompress/{*path}?description={description}&archiveType={archiveType}'.replace('*', '')
pos = resourcePath.find("?")
if pos != -1:
resourcePath = resourcePath[0:pos]
resourcePath = resourcePath.replace('{format}', 'json')

@@ -289,2 +331,6 @@ method = 'POST'

if ('description' in params):
queryParams['description'] = self.apiClient.toPathValue(params['description'])
if ('archiveType' in params):
queryParams['archiveType'] = self.apiClient.toPathValue(params['archiveType'])
if ('userId' in params):

@@ -298,9 +344,4 @@ replacement = str(self.apiClient.toPathValue(params['userId']))

replacement)
if ('description' in params):
replacement = str(self.apiClient.toPathValue(params['description']))
resourcePath = resourcePath.replace('{' + 'description' + '}',
replacement)
postData = (params['body'] if 'body' in params else None)
response = self.apiClient.callAPI(resourcePath, method, queryParams,
response = self.apiClient.callAPI(self.basePath, resourcePath, method, queryParams,
postData, headerParams)

@@ -324,3 +365,4 @@

"""
if( userId == None or url == None ):
raise ApiException(400, "missing required parameters")
allParams = ['userId', 'url']

@@ -336,2 +378,5 @@

resourcePath = '/storage/{userId}/urls?url={url}'.replace('*', '')
pos = resourcePath.find("?")
if pos != -1:
resourcePath = resourcePath[0:pos]
resourcePath = resourcePath.replace('{format}', 'json')

@@ -343,2 +388,4 @@ method = 'POST'

if ('url' in params):
queryParams['url'] = self.apiClient.toPathValue(params['url'])
if ('userId' in params):

@@ -348,9 +395,4 @@ replacement = str(self.apiClient.toPathValue(params['userId']))

replacement)
if ('url' in params):
replacement = str(self.apiClient.toPathValue(params['url']))
resourcePath = resourcePath.replace('{' + 'url' + '}',
replacement)
postData = (params['body'] if 'body' in params else None)
response = self.apiClient.callAPI(resourcePath, method, queryParams,
response = self.apiClient.callAPI(self.basePath, resourcePath, method, queryParams,
postData, headerParams)

@@ -365,3 +407,3 @@

def UploadGoogle(self, userId, path, fileId, **kwargs):
def UploadGoogle(self, userId, path, **kwargs):
"""Upload Google

@@ -376,3 +418,4 @@

"""
if( userId == None or path == None ):
raise ApiException(400, "missing required parameters")
allParams = ['userId', 'path', 'fileId']

@@ -388,2 +431,5 @@

resourcePath = '/storage/{userId}/google/files/{*path}?file_id={fileId}'.replace('*', '')
pos = resourcePath.find("?")
if pos != -1:
resourcePath = resourcePath[0:pos]
resourcePath = resourcePath.replace('{format}', 'json')

@@ -395,2 +441,4 @@ method = 'POST'

if ('fileId' in params):
queryParams['file_id'] = self.apiClient.toPathValue(params['fileId'])
if ('userId' in params):

@@ -404,9 +452,4 @@ replacement = str(self.apiClient.toPathValue(params['userId']))

replacement)
if ('fileId' in params):
replacement = str(self.apiClient.toPathValue(params['fileId']))
resourcePath = resourcePath.replace('{' + 'fileId' + '}',
replacement)
postData = (params['body'] if 'body' in params else None)
response = self.apiClient.callAPI(resourcePath, method, queryParams,
response = self.apiClient.callAPI(self.basePath, resourcePath, method, queryParams,
postData, headerParams)

@@ -430,3 +473,4 @@

"""
if( userId == None or fileId == None ):
raise ApiException(400, "missing required parameters")
allParams = ['userId', 'fileId']

@@ -457,4 +501,3 @@

postData = (params['body'] if 'body' in params else None)
response = self.apiClient.callAPI(resourcePath, method, queryParams,
response = self.apiClient.callAPI(self.basePath, resourcePath, method, queryParams,
postData, headerParams)

@@ -478,3 +521,4 @@

"""
if( userId == None or path == None ):
raise ApiException(400, "missing required parameters")
allParams = ['userId', 'path']

@@ -505,4 +549,3 @@

postData = (params['body'] if 'body' in params else None)
response = self.apiClient.callAPI(resourcePath, method, queryParams,
response = self.apiClient.callAPI(self.basePath, resourcePath, method, queryParams,
postData, headerParams)

@@ -517,3 +560,3 @@

def MoveFile(self, userId, path, mode, **kwargs):
def MoveFile(self, userId, path, **kwargs):
"""Move file

@@ -525,10 +568,11 @@

mode, str: Mode (optional)
Groupdocs-Move, str: File ID (move) (optional)
Groupdocs-Copy, str: File ID (copy) (optional)
Groupdocs_Copy, str: File ID (copy) (optional)
Groupdocs_Move, str: File ID (move) (optional)
Returns: FileMoveResponse
"""
if( userId == None or path == None ):
raise ApiException(400, "missing required parameters")
allParams = ['userId', 'path', 'mode', 'Groupdocs_Copy', 'Groupdocs_Move']
allParams = ['userId', 'path', 'mode', 'Groupdocs-Move', 'Groupdocs-Copy']
params = locals()

@@ -542,2 +586,5 @@ for (key, val) in params['kwargs'].iteritems():

resourcePath = '/storage/{userId}/files/{*path}'.replace('*', '')
pos = resourcePath.find("?")
if pos != -1:
resourcePath = resourcePath[0:pos]
resourcePath = resourcePath.replace('{format}', 'json')

@@ -549,6 +596,8 @@ method = 'PUT'

if ('Groupdocs-Move' in params):
headerParams['Groupdocs-Move'] = params['Groupdocs-Move']
if ('Groupdocs-Copy' in params):
headerParams['Groupdocs-Copy'] = params['Groupdocs-Copy']
if ('mode' in params):
queryParams['mode'] = self.apiClient.toPathValue(params['mode'])
if ('Groupdocs_Copy' in params):
headerParams['Groupdocs-Copy'] = params['Groupdocs_Copy']
if ('Groupdocs_Move' in params):
headerParams['Groupdocs-Move'] = params['Groupdocs_Move']
if ('userId' in params):

@@ -562,9 +611,4 @@ replacement = str(self.apiClient.toPathValue(params['userId']))

replacement)
if ('mode' in params):
replacement = str(self.apiClient.toPathValue(params['mode']))
resourcePath = resourcePath.replace('{' + 'mode' + '}',
replacement)
postData = (params['body'] if 'body' in params else None)
response = self.apiClient.callAPI(resourcePath, method, queryParams,
response = self.apiClient.callAPI(self.basePath, resourcePath, method, queryParams,
postData, headerParams)

@@ -579,3 +623,3 @@

def MoveFolder(self, userId, path, mode, **kwargs):
def MoveFolder(self, userId, path, **kwargs):
"""Move folder

@@ -587,10 +631,11 @@

mode, str: Mode (optional)
Groupdocs-Copy, str: Source path (copy) (optional)
Groupdocs-Move, str: Source path (move) (optional)
Groupdocs_Move, str: Source path (move) (optional)
Groupdocs_Copy, str: Source path (copy) (optional)
Returns: FolderMoveResponse
"""
if( userId == None or path == None ):
raise ApiException(400, "missing required parameters")
allParams = ['userId', 'path', 'mode', 'Groupdocs_Move', 'Groupdocs_Copy']
allParams = ['userId', 'path', 'mode', 'Groupdocs-Copy', 'Groupdocs-Move']
params = locals()

@@ -604,2 +649,5 @@ for (key, val) in params['kwargs'].iteritems():

resourcePath = '/storage/{userId}/folders/{*path}?override_mode={mode}'.replace('*', '')
pos = resourcePath.find("?")
if pos != -1:
resourcePath = resourcePath[0:pos]
resourcePath = resourcePath.replace('{format}', 'json')

@@ -611,6 +659,8 @@ method = 'PUT'

if ('Groupdocs-Copy' in params):
headerParams['Groupdocs-Copy'] = params['Groupdocs-Copy']
if ('Groupdocs-Move' in params):
headerParams['Groupdocs-Move'] = params['Groupdocs-Move']
if ('mode' in params):
queryParams['override_mode'] = self.apiClient.toPathValue(params['mode'])
if ('Groupdocs_Move' in params):
headerParams['Groupdocs-Move'] = params['Groupdocs_Move']
if ('Groupdocs_Copy' in params):
headerParams['Groupdocs-Copy'] = params['Groupdocs_Copy']
if ('userId' in params):

@@ -624,9 +674,4 @@ replacement = str(self.apiClient.toPathValue(params['userId']))

replacement)
if ('mode' in params):
replacement = str(self.apiClient.toPathValue(params['mode']))
resourcePath = resourcePath.replace('{' + 'mode' + '}',
replacement)
postData = (params['body'] if 'body' in params else None)
response = self.apiClient.callAPI(resourcePath, method, queryParams,
response = self.apiClient.callAPI(self.basePath, resourcePath, method, queryParams,
postData, headerParams)

@@ -650,3 +695,4 @@

"""
if( userId == None or path == None ):
raise ApiException(400, "missing required parameters")
allParams = ['userId', 'path']

@@ -677,4 +723,3 @@

postData = (params['body'] if 'body' in params else None)
response = self.apiClient.callAPI(resourcePath, method, queryParams,
response = self.apiClient.callAPI(self.basePath, resourcePath, method, queryParams,
postData, headerParams)

@@ -699,3 +744,4 @@

"""
if( userId == None or fileId == None or archiveType == None ):
raise ApiException(400, "missing required parameters")
allParams = ['userId', 'fileId', 'archiveType']

@@ -730,4 +776,3 @@

postData = (params['body'] if 'body' in params else None)
response = self.apiClient.callAPI(resourcePath, method, queryParams,
response = self.apiClient.callAPI(self.basePath, resourcePath, method, queryParams,
postData, headerParams)

@@ -742,3 +787,3 @@

def CreatePackage(self, userId, packageName, storeRelativePath, **kwargs):
def CreatePackage(self, userId, packageName, **kwargs):
"""Create Package

@@ -754,3 +799,4 @@

"""
if( userId == None or packageName == None ):
raise ApiException(400, "missing required parameters")
allParams = ['userId', 'packageName', 'storeRelativePath', 'body']

@@ -766,2 +812,5 @@

resourcePath = '/storage/{userId}/packages/{packageName}?storeRelativePath={storeRelativePath}'.replace('*', '')
pos = resourcePath.find("?")
if pos != -1:
resourcePath = resourcePath[0:pos]
resourcePath = resourcePath.replace('{format}', 'json')

@@ -773,2 +822,4 @@ method = 'POST'

if ('storeRelativePath' in params):
queryParams['storeRelativePath'] = self.apiClient.toPathValue(params['storeRelativePath'])
if ('userId' in params):

@@ -782,9 +833,4 @@ replacement = str(self.apiClient.toPathValue(params['userId']))

replacement)
if ('storeRelativePath' in params):
replacement = str(self.apiClient.toPathValue(params['storeRelativePath']))
resourcePath = resourcePath.replace('{' + 'storeRelativePath' + '}',
replacement)
postData = (params['body'] if 'body' in params else None)
response = self.apiClient.callAPI(resourcePath, method, queryParams,
response = self.apiClient.callAPI(self.basePath, resourcePath, method, queryParams,
postData, headerParams)

@@ -808,3 +854,4 @@

"""
if( userId == None or path == None ):
raise ApiException(400, "missing required parameters")
allParams = ['userId', 'path']

@@ -835,4 +882,3 @@

postData = (params['body'] if 'body' in params else None)
response = self.apiClient.callAPI(resourcePath, method, queryParams,
response = self.apiClient.callAPI(self.basePath, resourcePath, method, queryParams,
postData, headerParams)

@@ -856,3 +902,4 @@

"""
if( userId == None or path == None ):
raise ApiException(400, "missing required parameters")
allParams = ['userId', 'path']

@@ -883,4 +930,3 @@

postData = (params['body'] if 'body' in params else None)
response = self.apiClient.callAPI(resourcePath, method, queryParams,
response = self.apiClient.callAPI(self.basePath, resourcePath, method, queryParams,
postData, headerParams)

@@ -887,0 +933,0 @@

#!/usr/bin/env python
"""
WordAPI.py
Copyright 2012 Wordnik, Inc.
Copyright 2012 GroupDocs.

@@ -24,10 +23,20 @@ Licensed under the Apache License, Version 2.0 (the "License");

from models import *
from groupdocs.FileStream import FileStream
from groupdocs.ApiClient import ApiException
class SystemApi(object):
def __init__(self, apiClient):
self.apiClient = apiClient
self.apiClient = apiClient
self.__basePath = "https://api.groupdocs.com/v2.0"
@property
def basePath(self):
return self.__basePath
@basePath.setter
def basePath(self, value):
self.__basePath = value
def GetUserPlan(self, callerId, **kwargs):

@@ -41,3 +50,4 @@ """Get user plan

"""
if( callerId == None ):
raise ApiException(400, "missing required parameters")
allParams = ['callerId']

@@ -64,4 +74,3 @@

postData = (params['body'] if 'body' in params else None)
response = self.apiClient.callAPI(resourcePath, method, queryParams,
response = self.apiClient.callAPI(self.basePath, resourcePath, method, queryParams,
postData, headerParams)

@@ -84,3 +93,4 @@

"""
if( callerId == None ):
raise ApiException(400, "missing required parameters")
allParams = ['callerId']

@@ -107,4 +117,3 @@

postData = (params['body'] if 'body' in params else None)
response = self.apiClient.callAPI(resourcePath, method, queryParams,
response = self.apiClient.callAPI(self.basePath, resourcePath, method, queryParams,
postData, headerParams)

@@ -128,3 +137,4 @@

"""
if( callerId == None or family == None ):
raise ApiException(400, "missing required parameters")
allParams = ['callerId', 'family']

@@ -155,4 +165,3 @@

postData = (params['body'] if 'body' in params else None)
response = self.apiClient.callAPI(resourcePath, method, queryParams,
response = self.apiClient.callAPI(self.basePath, resourcePath, method, queryParams,
postData, headerParams)

@@ -177,3 +186,4 @@

"""
if( userId == None or productId == None or body == None ):
raise ApiException(400, "missing required parameters")
allParams = ['userId', 'productId', 'body']

@@ -204,4 +214,3 @@

postData = (params['body'] if 'body' in params else None)
response = self.apiClient.callAPI(resourcePath, method, queryParams,
response = self.apiClient.callAPI(self.basePath, resourcePath, method, queryParams,
postData, headerParams)

@@ -224,3 +233,4 @@

"""
if( callerId == None ):
raise ApiException(400, "missing required parameters")
allParams = ['callerId']

@@ -247,4 +257,3 @@

postData = (params['body'] if 'body' in params else None)
response = self.apiClient.callAPI(resourcePath, method, queryParams,
response = self.apiClient.callAPI(self.basePath, resourcePath, method, queryParams,
postData, headerParams)

@@ -268,3 +277,4 @@

"""
if( callerId == None or countryName == None ):
raise ApiException(400, "missing required parameters")
allParams = ['callerId', 'countryName']

@@ -295,4 +305,3 @@

postData = (params['body'] if 'body' in params else None)
response = self.apiClient.callAPI(resourcePath, method, queryParams,
response = self.apiClient.callAPI(self.basePath, resourcePath, method, queryParams,
postData, headerParams)

@@ -299,0 +308,0 @@

@@ -1,4 +0,4 @@

Metadata-Version: 1.1
Metadata-Version: 1.0
Name: groupdocs-python
Version: 1.1
Version: 1.2
Summary: A Python interface to the GroupDocs API

@@ -8,6 +8,72 @@ Home-page: http://groupdocs.com/

Author-email: support@groupdocs.com
License: Python license
License: Apache License (2.0)
Download-URL: https://github.com/groupdocs/groupdocs-python
Description: This package implements an interface to the GroupDocs
API, defined at http://groupdocs.com/api.
Description: GroupDocs Python SDK |Build Status|_
####################################
Requirements
************
- SDK requires Python 2.6 (or later). If you need Python 3 version of
SDK please go to `groupdocs-python3`_
Installation
************
You can use the `Pip`_ to download and install SDK. GroupDocs SDK is now
in `PyPi`_.
Usage Example
*************
::
apiClient = ApiClient(GroupDocsRequestSigner(privateKey))
api = AntApi(apiClient)
response = api.ListAnnotations(userId, fileId)
`Sign, Manage, Annotate, Assemble, Compare and Convert Documents with GroupDocs`_
*********************************************************************************
1. `Sign documents online with GroupDocs Signature`_
2. `PDF, Word and Image Annotation with GroupDocs Annotation`_
3. `Online DOC, DOCX, PPT Document Comparison with GroupDocs
Comparison`_
4. `Online Document Management with GroupDocs Dashboard`_
5. `Doc to PDF, Doc to Docx, PPT to PDF, and other Document Conversions
with GroupDocs Viewer`_
6. `Online Document Automation with GroupDocs Assembly`_
License
*******
::
Copyright 2012 GroupDocs.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
.. _Build Status: http://travis-ci.org/groupdocs/groupdocs-python
.. _groupdocs-python3: https://github.com/groupdocs/groupdocs-python3
.. _Pip: http://www.pip-installer.org/
.. _PyPi: http://pypi.python.org/pypi/groupdocs-python
.. _Sign, Manage, Annotate, Assemble, Compare and Convert Documents with GroupDocs: http://groupdocs.com
.. _Sign documents online with GroupDocs Signature: http://groupdocs.com/apps/signature
.. _PDF, Word and Image Annotation with GroupDocs Annotation: http://groupdocs.com/apps/annotation
.. _Online DOC, DOCX, PPT Document Comparison with GroupDocs Comparison: http://groupdocs.com/apps/comparison
.. _Online Document Management with GroupDocs Dashboard: http://groupdocs.com/apps/dashboard
.. _Doc to PDF, Doc to Docx, PPT to PDF, and other Document Conversions with GroupDocs Viewer: http://groupdocs.com/apps/viewer
.. _Online Document Automation with GroupDocs Assembly: http://groupdocs.com/apps/assembly
.. |Build Status| image:: https://secure.travis-ci.org/groupdocs/groupdocs-python.png
Keywords: groupdocs,document management,viewer,annotation,signature

@@ -18,3 +84,5 @@ Platform: any

Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 2.6
Classifier: Programming Language :: Python :: 2.7
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Classifier: License :: OSI Approved :: Apache Software License
#!/usr/bin/env python
"""Wordnik.com's Swagger generic API client. This client handles the client-
server communication, and is invariant across implementations. Specifics of
the methods and models for each application are generated from the Swagger
templates."""
import sys
import os
import re
import urllib
import urllib2
import httplib
import json
import datetime
import mimetypes
from models import *
class RequestSigner(object):
def __init__(self):
if type(self) == RequestSigner:
raise Exception("RequestSigner is an abstract class and cannot be instantiated.")
def signUrl(self, url):
raise NotImplementedError
def signContent(self, requestBody, headers):
raise NotImplementedError
class DefaultRequestSigner(RequestSigner):
def __init__(self, apiKey):
self.apiKey = apiKey
def signUrl(self, url):
return url
def signContent(self, requestBody, headers):
return requestBody
class ApiClient:
"""Generic API client for Swagger client library builds"""
def __init__(self, apiKey=None, apiServer=None, requestSigner=DefaultRequestSigner):
if apiKey == None:
raise Exception('You must pass an apiKey when instantiating the '
'APIClient')
self.signer = requestSigner(apiKey)
self.apiServer = apiServer
self.cookie = None
def callAPI(self, resourcePath, method, queryParams, postData,
headerParams=None):
url = self.apiServer + resourcePath
headers = {}
if headerParams:
for param, value in headerParams.iteritems():
headers[param] = value
if type(self.signer) == DefaultRequestSigner:
headers['api_key'] = self.signer.apiKey
filename = False
if not postData:
headers['Content-type'] = 'text/html'
elif isinstance(postData, str) and postData.startswith('file://'):
filename = postData[7:len(postData)]
headers['Content-type'] = mimetypes.guess_type(filename)[0] or 'application/octet-stream'
headers['Content-Length'] = str(os.path.getsize(filename))
else:
headers['Content-type'] = 'application/json'
if self.cookie:
headers['Cookie'] = self.cookie
data = None
if method == 'GET':
if queryParams:
# Need to remove None values, these should not be sent
sentQueryParams = {}
for param, value in queryParams.items():
if value != None:
sentQueryParams[param] = value
url = url + '?' + urllib.urlencode(sentQueryParams)
elif method in ['POST', 'PUT', 'DELETE']:
if filename:
data = open(filename, "rb")
elif type(postData) not in [str, int, float, bool]:
data = self.signer.signContent(json.dumps(self.sanitizeForSerialization(postData)), headers)
else:
data = self.signer.signContent(postData, headers)
else:
raise Exception('Method ' + method + ' is not recognized.')
request = MethodRequest(method=method, url=self.encodeURI(self.signer.signUrl(url)), headers=headers,
data=data)
# Make the request
response = urllib2.urlopen(request)
if 'Set-Cookie' in response.headers:
self.cookie = response.headers['Set-Cookie']
string = response.read()
try:
data = json.loads(string)
except ValueError: # PUT requests don't return anything
data = None
return data
def toPathValue(self, obj):
"""Serialize a list to a CSV string, if necessary.
Args:
obj -- data object to be serialized
Returns:
string -- json serialization of object
"""
if type(obj) == list:
return ','.join(obj)
else:
return obj
def sanitizeForSerialization(self, obj):
"""Dump an object into JSON for POSTing."""
if not obj:
return None
elif type(obj) in [str, int, long, float, bool]:
return obj
elif type(obj) == list:
return [self.sanitizeForSerialization(subObj) for subObj in obj]
elif type(obj) == datetime.datetime:
return obj.isoformat()
else:
if type(obj) == dict:
objDict = obj
else:
objDict = obj.__dict__
return {key: self.sanitizeForSerialization(val)
for (key, val) in objDict.iteritems()
if key != 'swaggerTypes' and val != None}
def deserialize(self, obj, objClass):
"""Derialize a JSON string into an object.
Args:
obj -- string or object to be deserialized
objClass -- class literal for deserialzied object, or string
of class name
Returns:
object -- deserialized object"""
if not obj:
return None
# Have to accept objClass as string or actual type. Type could be a
# native Python type, or one of the model classes.
if type(objClass) == str:
if 'list[' in objClass:
match = re.match('list\[(.*)\]', objClass)
subClass = match.group(1)
return [self.deserialize(subObj, subClass) for subObj in obj]
if (objClass in ['int', 'float', 'long', 'dict', 'list', 'str']):
objClass = eval(objClass)
else: # not a native type, must be model class
objClass = eval(objClass + '.' + objClass)
if objClass in [str, int, long, float, bool]:
return objClass(obj)
elif objClass == datetime:
# Server will always return a time stamp in UTC, but with
# trailing +0000 indicating no offset from UTC. So don't process
# last 5 characters.
return datetime.datetime.strptime(obj[:-5],
"%Y-%m-%dT%H:%M:%S.%f")
instance = objClass()
for attr, attrType in instance.swaggerTypes.iteritems():
if attr in obj:
value = obj[attr]
if attrType in ['str', 'int', 'long', 'float', 'bool']:
attrType = eval(attrType)
try:
value = attrType(value)
except UnicodeEncodeError:
value = unicode(value)
setattr(instance, attr, value)
elif 'list[' in attrType:
match = re.match('list\[(.*)\]', attrType)
subClass = match.group(1)
subValues = []
if not value:
setattr(instance, attr, None)
else:
for subValue in value:
subValues.append(self.deserialize(subValue,
subClass))
setattr(instance, attr, subValues)
else:
setattr(instance, attr, self.deserialize(value,
attrType))
return instance
@staticmethod
def encodeURI(url):
encoded = urllib.quote(url, safe='~@#$&()*!=:;,.?/\'').replace("%25", "%")
return encoded
@staticmethod
def encodeURIComponent(url):
return urllib.quote(url, safe='~()*!.\'')
class MethodRequest(urllib2.Request):
def __init__(self, *args, **kwargs):
"""Construct a MethodRequest. Usage is the same as for
`urllib2.Request` except it also takes an optional `method`
keyword argument. If supplied, `method` will be used instead of
the default."""
if 'method' in kwargs:
self.method = kwargs.pop('method')
return urllib2.Request.__init__(self, *args, **kwargs)
def get_method(self):
return getattr(self, 'method', urllib2.Request.get_method(self))
groupdocs-python
================
GroupDocs Python SDK
###[Sign, Manage, Annotate, Assemble, Compare and Convert Documents with GroupDocs](http://groupdocs.com)
1. [Sign documents online with GroupDocs Signature](http://groupdocs.com/apps/signature)
2. [PDF, Word and Image Annotation with GroupDocs Annotation](http://groupdocs.com/apps/annotation)
3. [Online DOC, DOCX, PPT Document Comparison with GroupDocs Comparison](http://groupdocs.com/apps/comparison)
4. [Online Document Management with GroupDocs Dashboard](http://groupdocs.com/apps/dashboard)
5. [Doc to PDF, Doc to Docx, PPT to PDF, and other Document Conversions with GroupDocs Viewer](http://groupdocs.com/apps/viewer)
6. [Online Document Automation with GroupDocs Assembly](http://groupdocs.com/apps/assembly)
[metadata]
name = groupdocs-python
version = 1.1
summary = GroupDocs API library for Python
description = This package implements an interface to the GroupDocs API, defined at http://groupdocs.com/api.
download_url = https://github.com/groupdocs/groupdocs-python
home_page = http://groupdocs.com
author = GroupDocs Team
author_email = support@groupdocs.com
license = Python license
keywords = groupdocs, document management, viewer, annotation, signature
classifier = Development Status :: 4 - Beta
Topic :: Software Development :: Libraries :: Python Modules
Operating System :: OS Independent
Intended Audience :: Developers
License :: OSI Approved :: Python Software Foundation License
Programming Language :: Python :: 2.6
Programming Language :: Python :: 2.7
[files]
packages =
groupdocs
groupdocs.models
extra_files =
README.md

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display