docusign_esign.models.external_file

Docusign eSignature REST API

The Docusign eSignature REST API provides you with a powerful, convenient, and simple Web services API for interacting with Docusign. # noqa: E501

OpenAPI spec version: v2.1 Contact: devcenter@docusign.com Generated by: https://github.com/swagger-api/swagger-codegen.git

  1# coding: utf-8
  2
  3"""
  4    Docusign eSignature REST API
  5
  6    The Docusign eSignature REST API provides you with a powerful, convenient, and simple Web services API for interacting with Docusign.  # noqa: E501
  7
  8    OpenAPI spec version: v2.1
  9    Contact: devcenter@docusign.com
 10    Generated by: https://github.com/swagger-api/swagger-codegen.git
 11"""
 12
 13
 14import pprint
 15import re  # noqa: F401
 16
 17import six
 18
 19from docusign_esign.client.configuration import Configuration
 20
 21
 22class ExternalFile(object):
 23    """NOTE: This class is auto generated by the swagger code generator program.
 24
 25    Do not edit the class manually.
 26    """
 27
 28    """
 29    Attributes:
 30      swagger_types (dict): The key is attribute name
 31                            and the value is attribute type.
 32      attribute_map (dict): The key is attribute name
 33                            and the value is json key in definition.
 34    """
 35    swagger_types = {
 36        '_date': 'str',
 37        'has_composite_template': 'str',
 38        'id': 'str',
 39        'img': 'str',
 40        'name': 'str',
 41        'owner_name': 'str',
 42        'size': 'str',
 43        'supported': 'str',
 44        'type': 'str',
 45        'uri': 'str'
 46    }
 47
 48    attribute_map = {
 49        '_date': 'date',
 50        'has_composite_template': 'hasCompositeTemplate',
 51        'id': 'id',
 52        'img': 'img',
 53        'name': 'name',
 54        'owner_name': 'ownerName',
 55        'size': 'size',
 56        'supported': 'supported',
 57        'type': 'type',
 58        'uri': 'uri'
 59    }
 60
 61    def __init__(self, _configuration=None, **kwargs):  # noqa: E501
 62        """ExternalFile - a model defined in Swagger"""  # noqa: E501
 63        if _configuration is None:
 64            _configuration = Configuration()
 65        self._configuration = _configuration
 66
 67        self.__date = None
 68        self._has_composite_template = None
 69        self._id = None
 70        self._img = None
 71        self._name = None
 72        self._owner_name = None
 73        self._size = None
 74        self._supported = None
 75        self._type = None
 76        self._uri = None
 77        self.discriminator = None
 78
 79        setattr(self, "_{}".format('_date'), kwargs.get('_date', None))
 80        setattr(self, "_{}".format('has_composite_template'), kwargs.get('has_composite_template', None))
 81        setattr(self, "_{}".format('id'), kwargs.get('id', None))
 82        setattr(self, "_{}".format('img'), kwargs.get('img', None))
 83        setattr(self, "_{}".format('name'), kwargs.get('name', None))
 84        setattr(self, "_{}".format('owner_name'), kwargs.get('owner_name', None))
 85        setattr(self, "_{}".format('size'), kwargs.get('size', None))
 86        setattr(self, "_{}".format('supported'), kwargs.get('supported', None))
 87        setattr(self, "_{}".format('type'), kwargs.get('type', None))
 88        setattr(self, "_{}".format('uri'), kwargs.get('uri', None))
 89
 90    @property
 91    def _date(self):
 92        """Gets the _date of this ExternalFile.  # noqa: E501
 93
 94          # noqa: E501
 95
 96        :return: The _date of this ExternalFile.  # noqa: E501
 97        :rtype: str
 98        """
 99        return self.__date
100
101    @_date.setter
102    def _date(self, _date):
103        """Sets the _date of this ExternalFile.
104
105          # noqa: E501
106
107        :param _date: The _date of this ExternalFile.  # noqa: E501
108        :type: str
109        """
110
111        self.__date = _date
112
113    @property
114    def has_composite_template(self):
115        """Gets the has_composite_template of this ExternalFile.  # noqa: E501
116
117          # noqa: E501
118
119        :return: The has_composite_template of this ExternalFile.  # noqa: E501
120        :rtype: str
121        """
122        return self._has_composite_template
123
124    @has_composite_template.setter
125    def has_composite_template(self, has_composite_template):
126        """Sets the has_composite_template of this ExternalFile.
127
128          # noqa: E501
129
130        :param has_composite_template: The has_composite_template of this ExternalFile.  # noqa: E501
131        :type: str
132        """
133
134        self._has_composite_template = has_composite_template
135
136    @property
137    def id(self):
138        """Gets the id of this ExternalFile.  # noqa: E501
139
140          # noqa: E501
141
142        :return: The id of this ExternalFile.  # noqa: E501
143        :rtype: str
144        """
145        return self._id
146
147    @id.setter
148    def id(self, id):
149        """Sets the id of this ExternalFile.
150
151          # noqa: E501
152
153        :param id: The id of this ExternalFile.  # noqa: E501
154        :type: str
155        """
156
157        self._id = id
158
159    @property
160    def img(self):
161        """Gets the img of this ExternalFile.  # noqa: E501
162
163          # noqa: E501
164
165        :return: The img of this ExternalFile.  # noqa: E501
166        :rtype: str
167        """
168        return self._img
169
170    @img.setter
171    def img(self, img):
172        """Sets the img of this ExternalFile.
173
174          # noqa: E501
175
176        :param img: The img of this ExternalFile.  # noqa: E501
177        :type: str
178        """
179
180        self._img = img
181
182    @property
183    def name(self):
184        """Gets the name of this ExternalFile.  # noqa: E501
185
186          # noqa: E501
187
188        :return: The name of this ExternalFile.  # noqa: E501
189        :rtype: str
190        """
191        return self._name
192
193    @name.setter
194    def name(self, name):
195        """Sets the name of this ExternalFile.
196
197          # noqa: E501
198
199        :param name: The name of this ExternalFile.  # noqa: E501
200        :type: str
201        """
202
203        self._name = name
204
205    @property
206    def owner_name(self):
207        """Gets the owner_name of this ExternalFile.  # noqa: E501
208
209          # noqa: E501
210
211        :return: The owner_name of this ExternalFile.  # noqa: E501
212        :rtype: str
213        """
214        return self._owner_name
215
216    @owner_name.setter
217    def owner_name(self, owner_name):
218        """Sets the owner_name of this ExternalFile.
219
220          # noqa: E501
221
222        :param owner_name: The owner_name of this ExternalFile.  # noqa: E501
223        :type: str
224        """
225
226        self._owner_name = owner_name
227
228    @property
229    def size(self):
230        """Gets the size of this ExternalFile.  # noqa: E501
231
232        Reserved: TBD  # noqa: E501
233
234        :return: The size of this ExternalFile.  # noqa: E501
235        :rtype: str
236        """
237        return self._size
238
239    @size.setter
240    def size(self, size):
241        """Sets the size of this ExternalFile.
242
243        Reserved: TBD  # noqa: E501
244
245        :param size: The size of this ExternalFile.  # noqa: E501
246        :type: str
247        """
248
249        self._size = size
250
251    @property
252    def supported(self):
253        """Gets the supported of this ExternalFile.  # noqa: E501
254
255          # noqa: E501
256
257        :return: The supported of this ExternalFile.  # noqa: E501
258        :rtype: str
259        """
260        return self._supported
261
262    @supported.setter
263    def supported(self, supported):
264        """Sets the supported of this ExternalFile.
265
266          # noqa: E501
267
268        :param supported: The supported of this ExternalFile.  # noqa: E501
269        :type: str
270        """
271
272        self._supported = supported
273
274    @property
275    def type(self):
276        """Gets the type of this ExternalFile.  # noqa: E501
277
278          # noqa: E501
279
280        :return: The type of this ExternalFile.  # noqa: E501
281        :rtype: str
282        """
283        return self._type
284
285    @type.setter
286    def type(self, type):
287        """Sets the type of this ExternalFile.
288
289          # noqa: E501
290
291        :param type: The type of this ExternalFile.  # noqa: E501
292        :type: str
293        """
294
295        self._type = type
296
297    @property
298    def uri(self):
299        """Gets the uri of this ExternalFile.  # noqa: E501
300
301          # noqa: E501
302
303        :return: The uri of this ExternalFile.  # noqa: E501
304        :rtype: str
305        """
306        return self._uri
307
308    @uri.setter
309    def uri(self, uri):
310        """Sets the uri of this ExternalFile.
311
312          # noqa: E501
313
314        :param uri: The uri of this ExternalFile.  # noqa: E501
315        :type: str
316        """
317
318        self._uri = uri
319
320    def to_dict(self):
321        """Returns the model properties as a dict"""
322        result = {}
323
324        for attr, _ in six.iteritems(self.swagger_types):
325            value = getattr(self, attr)
326            if isinstance(value, list):
327                result[attr] = list(map(
328                    lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
329                    value
330                ))
331            elif hasattr(value, "to_dict"):
332                result[attr] = value.to_dict()
333            elif isinstance(value, dict):
334                result[attr] = dict(map(
335                    lambda item: (item[0], item[1].to_dict())
336                    if hasattr(item[1], "to_dict") else item,
337                    value.items()
338                ))
339            else:
340                result[attr] = value
341        if issubclass(ExternalFile, dict):
342            for key, value in self.items():
343                result[key] = value
344
345        return result
346
347    def to_str(self):
348        """Returns the string representation of the model"""
349        return pprint.pformat(self.to_dict())
350
351    def __repr__(self):
352        """For `print` and `pprint`"""
353        return self.to_str()
354
355    def __eq__(self, other):
356        """Returns true if both objects are equal"""
357        if not isinstance(other, ExternalFile):
358            return False
359
360        return self.to_dict() == other.to_dict()
361
362    def __ne__(self, other):
363        """Returns true if both objects are not equal"""
364        if not isinstance(other, ExternalFile):
365            return True
366
367        return self.to_dict() != other.to_dict()
class ExternalFile:
 23class ExternalFile(object):
 24    """NOTE: This class is auto generated by the swagger code generator program.
 25
 26    Do not edit the class manually.
 27    """
 28
 29    """
 30    Attributes:
 31      swagger_types (dict): The key is attribute name
 32                            and the value is attribute type.
 33      attribute_map (dict): The key is attribute name
 34                            and the value is json key in definition.
 35    """
 36    swagger_types = {
 37        '_date': 'str',
 38        'has_composite_template': 'str',
 39        'id': 'str',
 40        'img': 'str',
 41        'name': 'str',
 42        'owner_name': 'str',
 43        'size': 'str',
 44        'supported': 'str',
 45        'type': 'str',
 46        'uri': 'str'
 47    }
 48
 49    attribute_map = {
 50        '_date': 'date',
 51        'has_composite_template': 'hasCompositeTemplate',
 52        'id': 'id',
 53        'img': 'img',
 54        'name': 'name',
 55        'owner_name': 'ownerName',
 56        'size': 'size',
 57        'supported': 'supported',
 58        'type': 'type',
 59        'uri': 'uri'
 60    }
 61
 62    def __init__(self, _configuration=None, **kwargs):  # noqa: E501
 63        """ExternalFile - a model defined in Swagger"""  # noqa: E501
 64        if _configuration is None:
 65            _configuration = Configuration()
 66        self._configuration = _configuration
 67
 68        self.__date = None
 69        self._has_composite_template = None
 70        self._id = None
 71        self._img = None
 72        self._name = None
 73        self._owner_name = None
 74        self._size = None
 75        self._supported = None
 76        self._type = None
 77        self._uri = None
 78        self.discriminator = None
 79
 80        setattr(self, "_{}".format('_date'), kwargs.get('_date', None))
 81        setattr(self, "_{}".format('has_composite_template'), kwargs.get('has_composite_template', None))
 82        setattr(self, "_{}".format('id'), kwargs.get('id', None))
 83        setattr(self, "_{}".format('img'), kwargs.get('img', None))
 84        setattr(self, "_{}".format('name'), kwargs.get('name', None))
 85        setattr(self, "_{}".format('owner_name'), kwargs.get('owner_name', None))
 86        setattr(self, "_{}".format('size'), kwargs.get('size', None))
 87        setattr(self, "_{}".format('supported'), kwargs.get('supported', None))
 88        setattr(self, "_{}".format('type'), kwargs.get('type', None))
 89        setattr(self, "_{}".format('uri'), kwargs.get('uri', None))
 90
 91    @property
 92    def _date(self):
 93        """Gets the _date of this ExternalFile.  # noqa: E501
 94
 95          # noqa: E501
 96
 97        :return: The _date of this ExternalFile.  # noqa: E501
 98        :rtype: str
 99        """
100        return self.__date
101
102    @_date.setter
103    def _date(self, _date):
104        """Sets the _date of this ExternalFile.
105
106          # noqa: E501
107
108        :param _date: The _date of this ExternalFile.  # noqa: E501
109        :type: str
110        """
111
112        self.__date = _date
113
114    @property
115    def has_composite_template(self):
116        """Gets the has_composite_template of this ExternalFile.  # noqa: E501
117
118          # noqa: E501
119
120        :return: The has_composite_template of this ExternalFile.  # noqa: E501
121        :rtype: str
122        """
123        return self._has_composite_template
124
125    @has_composite_template.setter
126    def has_composite_template(self, has_composite_template):
127        """Sets the has_composite_template of this ExternalFile.
128
129          # noqa: E501
130
131        :param has_composite_template: The has_composite_template of this ExternalFile.  # noqa: E501
132        :type: str
133        """
134
135        self._has_composite_template = has_composite_template
136
137    @property
138    def id(self):
139        """Gets the id of this ExternalFile.  # noqa: E501
140
141          # noqa: E501
142
143        :return: The id of this ExternalFile.  # noqa: E501
144        :rtype: str
145        """
146        return self._id
147
148    @id.setter
149    def id(self, id):
150        """Sets the id of this ExternalFile.
151
152          # noqa: E501
153
154        :param id: The id of this ExternalFile.  # noqa: E501
155        :type: str
156        """
157
158        self._id = id
159
160    @property
161    def img(self):
162        """Gets the img of this ExternalFile.  # noqa: E501
163
164          # noqa: E501
165
166        :return: The img of this ExternalFile.  # noqa: E501
167        :rtype: str
168        """
169        return self._img
170
171    @img.setter
172    def img(self, img):
173        """Sets the img of this ExternalFile.
174
175          # noqa: E501
176
177        :param img: The img of this ExternalFile.  # noqa: E501
178        :type: str
179        """
180
181        self._img = img
182
183    @property
184    def name(self):
185        """Gets the name of this ExternalFile.  # noqa: E501
186
187          # noqa: E501
188
189        :return: The name of this ExternalFile.  # noqa: E501
190        :rtype: str
191        """
192        return self._name
193
194    @name.setter
195    def name(self, name):
196        """Sets the name of this ExternalFile.
197
198          # noqa: E501
199
200        :param name: The name of this ExternalFile.  # noqa: E501
201        :type: str
202        """
203
204        self._name = name
205
206    @property
207    def owner_name(self):
208        """Gets the owner_name of this ExternalFile.  # noqa: E501
209
210          # noqa: E501
211
212        :return: The owner_name of this ExternalFile.  # noqa: E501
213        :rtype: str
214        """
215        return self._owner_name
216
217    @owner_name.setter
218    def owner_name(self, owner_name):
219        """Sets the owner_name of this ExternalFile.
220
221          # noqa: E501
222
223        :param owner_name: The owner_name of this ExternalFile.  # noqa: E501
224        :type: str
225        """
226
227        self._owner_name = owner_name
228
229    @property
230    def size(self):
231        """Gets the size of this ExternalFile.  # noqa: E501
232
233        Reserved: TBD  # noqa: E501
234
235        :return: The size of this ExternalFile.  # noqa: E501
236        :rtype: str
237        """
238        return self._size
239
240    @size.setter
241    def size(self, size):
242        """Sets the size of this ExternalFile.
243
244        Reserved: TBD  # noqa: E501
245
246        :param size: The size of this ExternalFile.  # noqa: E501
247        :type: str
248        """
249
250        self._size = size
251
252    @property
253    def supported(self):
254        """Gets the supported of this ExternalFile.  # noqa: E501
255
256          # noqa: E501
257
258        :return: The supported of this ExternalFile.  # noqa: E501
259        :rtype: str
260        """
261        return self._supported
262
263    @supported.setter
264    def supported(self, supported):
265        """Sets the supported of this ExternalFile.
266
267          # noqa: E501
268
269        :param supported: The supported of this ExternalFile.  # noqa: E501
270        :type: str
271        """
272
273        self._supported = supported
274
275    @property
276    def type(self):
277        """Gets the type of this ExternalFile.  # noqa: E501
278
279          # noqa: E501
280
281        :return: The type of this ExternalFile.  # noqa: E501
282        :rtype: str
283        """
284        return self._type
285
286    @type.setter
287    def type(self, type):
288        """Sets the type of this ExternalFile.
289
290          # noqa: E501
291
292        :param type: The type of this ExternalFile.  # noqa: E501
293        :type: str
294        """
295
296        self._type = type
297
298    @property
299    def uri(self):
300        """Gets the uri of this ExternalFile.  # noqa: E501
301
302          # noqa: E501
303
304        :return: The uri of this ExternalFile.  # noqa: E501
305        :rtype: str
306        """
307        return self._uri
308
309    @uri.setter
310    def uri(self, uri):
311        """Sets the uri of this ExternalFile.
312
313          # noqa: E501
314
315        :param uri: The uri of this ExternalFile.  # noqa: E501
316        :type: str
317        """
318
319        self._uri = uri
320
321    def to_dict(self):
322        """Returns the model properties as a dict"""
323        result = {}
324
325        for attr, _ in six.iteritems(self.swagger_types):
326            value = getattr(self, attr)
327            if isinstance(value, list):
328                result[attr] = list(map(
329                    lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
330                    value
331                ))
332            elif hasattr(value, "to_dict"):
333                result[attr] = value.to_dict()
334            elif isinstance(value, dict):
335                result[attr] = dict(map(
336                    lambda item: (item[0], item[1].to_dict())
337                    if hasattr(item[1], "to_dict") else item,
338                    value.items()
339                ))
340            else:
341                result[attr] = value
342        if issubclass(ExternalFile, dict):
343            for key, value in self.items():
344                result[key] = value
345
346        return result
347
348    def to_str(self):
349        """Returns the string representation of the model"""
350        return pprint.pformat(self.to_dict())
351
352    def __repr__(self):
353        """For `print` and `pprint`"""
354        return self.to_str()
355
356    def __eq__(self, other):
357        """Returns true if both objects are equal"""
358        if not isinstance(other, ExternalFile):
359            return False
360
361        return self.to_dict() == other.to_dict()
362
363    def __ne__(self, other):
364        """Returns true if both objects are not equal"""
365        if not isinstance(other, ExternalFile):
366            return True
367
368        return self.to_dict() != other.to_dict()

NOTE: This class is auto generated by the swagger code generator program.

Do not edit the class manually.

ExternalFile(_configuration=None, **kwargs)
62    def __init__(self, _configuration=None, **kwargs):  # noqa: E501
63        """ExternalFile - a model defined in Swagger"""  # noqa: E501
64        if _configuration is None:
65            _configuration = Configuration()
66        self._configuration = _configuration
67
68        self.__date = None
69        self._has_composite_template = None
70        self._id = None
71        self._img = None
72        self._name = None
73        self._owner_name = None
74        self._size = None
75        self._supported = None
76        self._type = None
77        self._uri = None
78        self.discriminator = None
79
80        setattr(self, "_{}".format('_date'), kwargs.get('_date', None))
81        setattr(self, "_{}".format('has_composite_template'), kwargs.get('has_composite_template', None))
82        setattr(self, "_{}".format('id'), kwargs.get('id', None))
83        setattr(self, "_{}".format('img'), kwargs.get('img', None))
84        setattr(self, "_{}".format('name'), kwargs.get('name', None))
85        setattr(self, "_{}".format('owner_name'), kwargs.get('owner_name', None))
86        setattr(self, "_{}".format('size'), kwargs.get('size', None))
87        setattr(self, "_{}".format('supported'), kwargs.get('supported', None))
88        setattr(self, "_{}".format('type'), kwargs.get('type', None))
89        setattr(self, "_{}".format('uri'), kwargs.get('uri', None))

ExternalFile - a model defined in Swagger

swagger_types = {'_date': 'str', 'has_composite_template': 'str', 'id': 'str', 'img': 'str', 'name': 'str', 'owner_name': 'str', 'size': 'str', 'supported': 'str', 'type': 'str', 'uri': 'str'}
attribute_map = {'_date': 'date', 'has_composite_template': 'hasCompositeTemplate', 'id': 'id', 'img': 'img', 'name': 'name', 'owner_name': 'ownerName', 'size': 'size', 'supported': 'supported', 'type': 'type', 'uri': 'uri'}
has_composite_template

Gets the has_composite_template of this ExternalFile. # noqa: E501

# noqa: E501

Returns

The has_composite_template of this ExternalFile. # noqa: E501

id

Gets the id of this ExternalFile. # noqa: E501

# noqa: E501

Returns

The id of this ExternalFile. # noqa: E501

img

Gets the img of this ExternalFile. # noqa: E501

# noqa: E501

Returns

The img of this ExternalFile. # noqa: E501

name

Gets the name of this ExternalFile. # noqa: E501

# noqa: E501

Returns

The name of this ExternalFile. # noqa: E501

owner_name

Gets the owner_name of this ExternalFile. # noqa: E501

# noqa: E501

Returns

The owner_name of this ExternalFile. # noqa: E501

size

Gets the size of this ExternalFile. # noqa: E501

Reserved: TBD # noqa: E501

Returns

The size of this ExternalFile. # noqa: E501

supported

Gets the supported of this ExternalFile. # noqa: E501

# noqa: E501

Returns

The supported of this ExternalFile. # noqa: E501

type

Gets the type of this ExternalFile. # noqa: E501

# noqa: E501

Returns

The type of this ExternalFile. # noqa: E501

uri

Gets the uri of this ExternalFile. # noqa: E501

# noqa: E501

Returns

The uri of this ExternalFile. # noqa: E501

def to_dict(self)
321    def to_dict(self):
322        """Returns the model properties as a dict"""
323        result = {}
324
325        for attr, _ in six.iteritems(self.swagger_types):
326            value = getattr(self, attr)
327            if isinstance(value, list):
328                result[attr] = list(map(
329                    lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
330                    value
331                ))
332            elif hasattr(value, "to_dict"):
333                result[attr] = value.to_dict()
334            elif isinstance(value, dict):
335                result[attr] = dict(map(
336                    lambda item: (item[0], item[1].to_dict())
337                    if hasattr(item[1], "to_dict") else item,
338                    value.items()
339                ))
340            else:
341                result[attr] = value
342        if issubclass(ExternalFile, dict):
343            for key, value in self.items():
344                result[key] = value
345
346        return result

Returns the model properties as a dict

def to_str(self)
348    def to_str(self):
349        """Returns the string representation of the model"""
350        return pprint.pformat(self.to_dict())

Returns the string representation of the model