docusign_esign.models.revision

DocuSign REST API

The DocuSign 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 REST API
  5
  6    The DocuSign 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
 19
 20class Revision(object):
 21    """NOTE: This class is auto generated by the swagger code generator program.
 22
 23    Do not edit the class manually.
 24    """
 25
 26    """
 27    Attributes:
 28      swagger_types (dict): The key is attribute name
 29                            and the value is attribute type.
 30      attribute_map (dict): The key is attribute name
 31                            and the value is json key in definition.
 32    """
 33    swagger_types = {
 34        'end_data': 'str',
 35        'field_name': 'str',
 36        'max_signature_length': 'str',
 37        'signature_properties': 'SignatureProperties',
 38        'signature_type': 'str',
 39        'start_data': 'str'
 40    }
 41
 42    attribute_map = {
 43        'end_data': 'endData',
 44        'field_name': 'fieldName',
 45        'max_signature_length': 'maxSignatureLength',
 46        'signature_properties': 'signatureProperties',
 47        'signature_type': 'signatureType',
 48        'start_data': 'startData'
 49    }
 50
 51    def __init__(self, end_data=None, field_name=None, max_signature_length=None, signature_properties=None, signature_type=None, start_data=None):  # noqa: E501
 52        """Revision - a model defined in Swagger"""  # noqa: E501
 53
 54        self._end_data = None
 55        self._field_name = None
 56        self._max_signature_length = None
 57        self._signature_properties = None
 58        self._signature_type = None
 59        self._start_data = None
 60        self.discriminator = None
 61
 62        if end_data is not None:
 63            self.end_data = end_data
 64        if field_name is not None:
 65            self.field_name = field_name
 66        if max_signature_length is not None:
 67            self.max_signature_length = max_signature_length
 68        if signature_properties is not None:
 69            self.signature_properties = signature_properties
 70        if signature_type is not None:
 71            self.signature_type = signature_type
 72        if start_data is not None:
 73            self.start_data = start_data
 74
 75    @property
 76    def end_data(self):
 77        """Gets the end_data of this Revision.  # noqa: E501
 78
 79          # noqa: E501
 80
 81        :return: The end_data of this Revision.  # noqa: E501
 82        :rtype: str
 83        """
 84        return self._end_data
 85
 86    @end_data.setter
 87    def end_data(self, end_data):
 88        """Sets the end_data of this Revision.
 89
 90          # noqa: E501
 91
 92        :param end_data: The end_data of this Revision.  # noqa: E501
 93        :type: str
 94        """
 95
 96        self._end_data = end_data
 97
 98    @property
 99    def field_name(self):
100        """Gets the field_name of this Revision.  # noqa: E501
101
102          # noqa: E501
103
104        :return: The field_name of this Revision.  # noqa: E501
105        :rtype: str
106        """
107        return self._field_name
108
109    @field_name.setter
110    def field_name(self, field_name):
111        """Sets the field_name of this Revision.
112
113          # noqa: E501
114
115        :param field_name: The field_name of this Revision.  # noqa: E501
116        :type: str
117        """
118
119        self._field_name = field_name
120
121    @property
122    def max_signature_length(self):
123        """Gets the max_signature_length of this Revision.  # noqa: E501
124
125          # noqa: E501
126
127        :return: The max_signature_length of this Revision.  # noqa: E501
128        :rtype: str
129        """
130        return self._max_signature_length
131
132    @max_signature_length.setter
133    def max_signature_length(self, max_signature_length):
134        """Sets the max_signature_length of this Revision.
135
136          # noqa: E501
137
138        :param max_signature_length: The max_signature_length of this Revision.  # noqa: E501
139        :type: str
140        """
141
142        self._max_signature_length = max_signature_length
143
144    @property
145    def signature_properties(self):
146        """Gets the signature_properties of this Revision.  # noqa: E501
147
148
149        :return: The signature_properties of this Revision.  # noqa: E501
150        :rtype: SignatureProperties
151        """
152        return self._signature_properties
153
154    @signature_properties.setter
155    def signature_properties(self, signature_properties):
156        """Sets the signature_properties of this Revision.
157
158
159        :param signature_properties: The signature_properties of this Revision.  # noqa: E501
160        :type: SignatureProperties
161        """
162
163        self._signature_properties = signature_properties
164
165    @property
166    def signature_type(self):
167        """Gets the signature_type of this Revision.  # noqa: E501
168
169          # noqa: E501
170
171        :return: The signature_type of this Revision.  # noqa: E501
172        :rtype: str
173        """
174        return self._signature_type
175
176    @signature_type.setter
177    def signature_type(self, signature_type):
178        """Sets the signature_type of this Revision.
179
180          # noqa: E501
181
182        :param signature_type: The signature_type of this Revision.  # noqa: E501
183        :type: str
184        """
185
186        self._signature_type = signature_type
187
188    @property
189    def start_data(self):
190        """Gets the start_data of this Revision.  # noqa: E501
191
192          # noqa: E501
193
194        :return: The start_data of this Revision.  # noqa: E501
195        :rtype: str
196        """
197        return self._start_data
198
199    @start_data.setter
200    def start_data(self, start_data):
201        """Sets the start_data of this Revision.
202
203          # noqa: E501
204
205        :param start_data: The start_data of this Revision.  # noqa: E501
206        :type: str
207        """
208
209        self._start_data = start_data
210
211    def to_dict(self):
212        """Returns the model properties as a dict"""
213        result = {}
214
215        for attr, _ in six.iteritems(self.swagger_types):
216            value = getattr(self, attr)
217            if isinstance(value, list):
218                result[attr] = list(map(
219                    lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
220                    value
221                ))
222            elif hasattr(value, "to_dict"):
223                result[attr] = value.to_dict()
224            elif isinstance(value, dict):
225                result[attr] = dict(map(
226                    lambda item: (item[0], item[1].to_dict())
227                    if hasattr(item[1], "to_dict") else item,
228                    value.items()
229                ))
230            else:
231                result[attr] = value
232        if issubclass(Revision, dict):
233            for key, value in self.items():
234                result[key] = value
235
236        return result
237
238    def to_str(self):
239        """Returns the string representation of the model"""
240        return pprint.pformat(self.to_dict())
241
242    def __repr__(self):
243        """For `print` and `pprint`"""
244        return self.to_str()
245
246    def __eq__(self, other):
247        """Returns true if both objects are equal"""
248        if not isinstance(other, Revision):
249            return False
250
251        return self.__dict__ == other.__dict__
252
253    def __ne__(self, other):
254        """Returns true if both objects are not equal"""
255        return not self == other
class Revision:
 21class Revision(object):
 22    """NOTE: This class is auto generated by the swagger code generator program.
 23
 24    Do not edit the class manually.
 25    """
 26
 27    """
 28    Attributes:
 29      swagger_types (dict): The key is attribute name
 30                            and the value is attribute type.
 31      attribute_map (dict): The key is attribute name
 32                            and the value is json key in definition.
 33    """
 34    swagger_types = {
 35        'end_data': 'str',
 36        'field_name': 'str',
 37        'max_signature_length': 'str',
 38        'signature_properties': 'SignatureProperties',
 39        'signature_type': 'str',
 40        'start_data': 'str'
 41    }
 42
 43    attribute_map = {
 44        'end_data': 'endData',
 45        'field_name': 'fieldName',
 46        'max_signature_length': 'maxSignatureLength',
 47        'signature_properties': 'signatureProperties',
 48        'signature_type': 'signatureType',
 49        'start_data': 'startData'
 50    }
 51
 52    def __init__(self, end_data=None, field_name=None, max_signature_length=None, signature_properties=None, signature_type=None, start_data=None):  # noqa: E501
 53        """Revision - a model defined in Swagger"""  # noqa: E501
 54
 55        self._end_data = None
 56        self._field_name = None
 57        self._max_signature_length = None
 58        self._signature_properties = None
 59        self._signature_type = None
 60        self._start_data = None
 61        self.discriminator = None
 62
 63        if end_data is not None:
 64            self.end_data = end_data
 65        if field_name is not None:
 66            self.field_name = field_name
 67        if max_signature_length is not None:
 68            self.max_signature_length = max_signature_length
 69        if signature_properties is not None:
 70            self.signature_properties = signature_properties
 71        if signature_type is not None:
 72            self.signature_type = signature_type
 73        if start_data is not None:
 74            self.start_data = start_data
 75
 76    @property
 77    def end_data(self):
 78        """Gets the end_data of this Revision.  # noqa: E501
 79
 80          # noqa: E501
 81
 82        :return: The end_data of this Revision.  # noqa: E501
 83        :rtype: str
 84        """
 85        return self._end_data
 86
 87    @end_data.setter
 88    def end_data(self, end_data):
 89        """Sets the end_data of this Revision.
 90
 91          # noqa: E501
 92
 93        :param end_data: The end_data of this Revision.  # noqa: E501
 94        :type: str
 95        """
 96
 97        self._end_data = end_data
 98
 99    @property
100    def field_name(self):
101        """Gets the field_name of this Revision.  # noqa: E501
102
103          # noqa: E501
104
105        :return: The field_name of this Revision.  # noqa: E501
106        :rtype: str
107        """
108        return self._field_name
109
110    @field_name.setter
111    def field_name(self, field_name):
112        """Sets the field_name of this Revision.
113
114          # noqa: E501
115
116        :param field_name: The field_name of this Revision.  # noqa: E501
117        :type: str
118        """
119
120        self._field_name = field_name
121
122    @property
123    def max_signature_length(self):
124        """Gets the max_signature_length of this Revision.  # noqa: E501
125
126          # noqa: E501
127
128        :return: The max_signature_length of this Revision.  # noqa: E501
129        :rtype: str
130        """
131        return self._max_signature_length
132
133    @max_signature_length.setter
134    def max_signature_length(self, max_signature_length):
135        """Sets the max_signature_length of this Revision.
136
137          # noqa: E501
138
139        :param max_signature_length: The max_signature_length of this Revision.  # noqa: E501
140        :type: str
141        """
142
143        self._max_signature_length = max_signature_length
144
145    @property
146    def signature_properties(self):
147        """Gets the signature_properties of this Revision.  # noqa: E501
148
149
150        :return: The signature_properties of this Revision.  # noqa: E501
151        :rtype: SignatureProperties
152        """
153        return self._signature_properties
154
155    @signature_properties.setter
156    def signature_properties(self, signature_properties):
157        """Sets the signature_properties of this Revision.
158
159
160        :param signature_properties: The signature_properties of this Revision.  # noqa: E501
161        :type: SignatureProperties
162        """
163
164        self._signature_properties = signature_properties
165
166    @property
167    def signature_type(self):
168        """Gets the signature_type of this Revision.  # noqa: E501
169
170          # noqa: E501
171
172        :return: The signature_type of this Revision.  # noqa: E501
173        :rtype: str
174        """
175        return self._signature_type
176
177    @signature_type.setter
178    def signature_type(self, signature_type):
179        """Sets the signature_type of this Revision.
180
181          # noqa: E501
182
183        :param signature_type: The signature_type of this Revision.  # noqa: E501
184        :type: str
185        """
186
187        self._signature_type = signature_type
188
189    @property
190    def start_data(self):
191        """Gets the start_data of this Revision.  # noqa: E501
192
193          # noqa: E501
194
195        :return: The start_data of this Revision.  # noqa: E501
196        :rtype: str
197        """
198        return self._start_data
199
200    @start_data.setter
201    def start_data(self, start_data):
202        """Sets the start_data of this Revision.
203
204          # noqa: E501
205
206        :param start_data: The start_data of this Revision.  # noqa: E501
207        :type: str
208        """
209
210        self._start_data = start_data
211
212    def to_dict(self):
213        """Returns the model properties as a dict"""
214        result = {}
215
216        for attr, _ in six.iteritems(self.swagger_types):
217            value = getattr(self, attr)
218            if isinstance(value, list):
219                result[attr] = list(map(
220                    lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
221                    value
222                ))
223            elif hasattr(value, "to_dict"):
224                result[attr] = value.to_dict()
225            elif isinstance(value, dict):
226                result[attr] = dict(map(
227                    lambda item: (item[0], item[1].to_dict())
228                    if hasattr(item[1], "to_dict") else item,
229                    value.items()
230                ))
231            else:
232                result[attr] = value
233        if issubclass(Revision, dict):
234            for key, value in self.items():
235                result[key] = value
236
237        return result
238
239    def to_str(self):
240        """Returns the string representation of the model"""
241        return pprint.pformat(self.to_dict())
242
243    def __repr__(self):
244        """For `print` and `pprint`"""
245        return self.to_str()
246
247    def __eq__(self, other):
248        """Returns true if both objects are equal"""
249        if not isinstance(other, Revision):
250            return False
251
252        return self.__dict__ == other.__dict__
253
254    def __ne__(self, other):
255        """Returns true if both objects are not equal"""
256        return not self == other

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

Do not edit the class manually.

Revision( end_data=None, field_name=None, max_signature_length=None, signature_properties=None, signature_type=None, start_data=None)
52    def __init__(self, end_data=None, field_name=None, max_signature_length=None, signature_properties=None, signature_type=None, start_data=None):  # noqa: E501
53        """Revision - a model defined in Swagger"""  # noqa: E501
54
55        self._end_data = None
56        self._field_name = None
57        self._max_signature_length = None
58        self._signature_properties = None
59        self._signature_type = None
60        self._start_data = None
61        self.discriminator = None
62
63        if end_data is not None:
64            self.end_data = end_data
65        if field_name is not None:
66            self.field_name = field_name
67        if max_signature_length is not None:
68            self.max_signature_length = max_signature_length
69        if signature_properties is not None:
70            self.signature_properties = signature_properties
71        if signature_type is not None:
72            self.signature_type = signature_type
73        if start_data is not None:
74            self.start_data = start_data

Revision - a model defined in Swagger

swagger_types = {'end_data': 'str', 'field_name': 'str', 'max_signature_length': 'str', 'signature_properties': 'SignatureProperties', 'signature_type': 'str', 'start_data': 'str'}
attribute_map = {'end_data': 'endData', 'field_name': 'fieldName', 'max_signature_length': 'maxSignatureLength', 'signature_properties': 'signatureProperties', 'signature_type': 'signatureType', 'start_data': 'startData'}
end_data

Gets the end_data of this Revision. # noqa: E501

# noqa: E501

Returns

The end_data of this Revision. # noqa: E501

field_name

Gets the field_name of this Revision. # noqa: E501

# noqa: E501

Returns

The field_name of this Revision. # noqa: E501

max_signature_length

Gets the max_signature_length of this Revision. # noqa: E501

# noqa: E501

Returns

The max_signature_length of this Revision. # noqa: E501

signature_properties

Gets the signature_properties of this Revision. # noqa: E501

Returns

The signature_properties of this Revision. # noqa: E501

signature_type

Gets the signature_type of this Revision. # noqa: E501

# noqa: E501

Returns

The signature_type of this Revision. # noqa: E501

start_data

Gets the start_data of this Revision. # noqa: E501

# noqa: E501

Returns

The start_data of this Revision. # noqa: E501

def to_dict(self)
212    def to_dict(self):
213        """Returns the model properties as a dict"""
214        result = {}
215
216        for attr, _ in six.iteritems(self.swagger_types):
217            value = getattr(self, attr)
218            if isinstance(value, list):
219                result[attr] = list(map(
220                    lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
221                    value
222                ))
223            elif hasattr(value, "to_dict"):
224                result[attr] = value.to_dict()
225            elif isinstance(value, dict):
226                result[attr] = dict(map(
227                    lambda item: (item[0], item[1].to_dict())
228                    if hasattr(item[1], "to_dict") else item,
229                    value.items()
230                ))
231            else:
232                result[attr] = value
233        if issubclass(Revision, dict):
234            for key, value in self.items():
235                result[key] = value
236
237        return result

Returns the model properties as a dict

def to_str(self)
239    def to_str(self):
240        """Returns the string representation of the model"""
241        return pprint.pformat(self.to_dict())

Returns the string representation of the model