docusign_esign.models.list_item

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 ListItem(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        'selected': 'str',
 37        'selected_metadata': 'PropertyMetadata',
 38        'text': 'str',
 39        'text_metadata': 'PropertyMetadata',
 40        'value': 'str',
 41        'value_metadata': 'PropertyMetadata'
 42    }
 43
 44    attribute_map = {
 45        'selected': 'selected',
 46        'selected_metadata': 'selectedMetadata',
 47        'text': 'text',
 48        'text_metadata': 'textMetadata',
 49        'value': 'value',
 50        'value_metadata': 'valueMetadata'
 51    }
 52
 53    def __init__(self, _configuration=None, **kwargs):  # noqa: E501
 54        """ListItem - a model defined in Swagger"""  # noqa: E501
 55        if _configuration is None:
 56            _configuration = Configuration()
 57        self._configuration = _configuration
 58
 59        self._selected = None
 60        self._selected_metadata = None
 61        self._text = None
 62        self._text_metadata = None
 63        self._value = None
 64        self._value_metadata = None
 65        self.discriminator = None
 66
 67        setattr(self, "_{}".format('selected'), kwargs.get('selected', None))
 68        setattr(self, "_{}".format('selected_metadata'), kwargs.get('selected_metadata', None))
 69        setattr(self, "_{}".format('text'), kwargs.get('text', None))
 70        setattr(self, "_{}".format('text_metadata'), kwargs.get('text_metadata', None))
 71        setattr(self, "_{}".format('value'), kwargs.get('value', None))
 72        setattr(self, "_{}".format('value_metadata'), kwargs.get('value_metadata', None))
 73
 74    @property
 75    def selected(self):
 76        """Gets the selected of this ListItem.  # noqa: E501
 77
 78        When set to **true**, indicates that this item is the default selection shown to a signer.   Only one selection can be set as the default.  # noqa: E501
 79
 80        :return: The selected of this ListItem.  # noqa: E501
 81        :rtype: str
 82        """
 83        return self._selected
 84
 85    @selected.setter
 86    def selected(self, selected):
 87        """Sets the selected of this ListItem.
 88
 89        When set to **true**, indicates that this item is the default selection shown to a signer.   Only one selection can be set as the default.  # noqa: E501
 90
 91        :param selected: The selected of this ListItem.  # noqa: E501
 92        :type: str
 93        """
 94
 95        self._selected = selected
 96
 97    @property
 98    def selected_metadata(self):
 99        """Gets the selected_metadata of this ListItem.  # noqa: E501
100
101        Metadata that indicates whether the `selected` property is editable.  # noqa: E501
102
103        :return: The selected_metadata of this ListItem.  # noqa: E501
104        :rtype: PropertyMetadata
105        """
106        return self._selected_metadata
107
108    @selected_metadata.setter
109    def selected_metadata(self, selected_metadata):
110        """Sets the selected_metadata of this ListItem.
111
112        Metadata that indicates whether the `selected` property is editable.  # noqa: E501
113
114        :param selected_metadata: The selected_metadata of this ListItem.  # noqa: E501
115        :type: PropertyMetadata
116        """
117
118        self._selected_metadata = selected_metadata
119
120    @property
121    def text(self):
122        """Gets the text of this ListItem.  # noqa: E501
123
124        Specifies the text that is shown in the dropdown list.   # noqa: E501
125
126        :return: The text of this ListItem.  # noqa: E501
127        :rtype: str
128        """
129        return self._text
130
131    @text.setter
132    def text(self, text):
133        """Sets the text of this ListItem.
134
135        Specifies the text that is shown in the dropdown list.   # noqa: E501
136
137        :param text: The text of this ListItem.  # noqa: E501
138        :type: str
139        """
140
141        self._text = text
142
143    @property
144    def text_metadata(self):
145        """Gets the text_metadata of this ListItem.  # noqa: E501
146
147          # noqa: E501
148
149        :return: The text_metadata of this ListItem.  # noqa: E501
150        :rtype: PropertyMetadata
151        """
152        return self._text_metadata
153
154    @text_metadata.setter
155    def text_metadata(self, text_metadata):
156        """Sets the text_metadata of this ListItem.
157
158          # noqa: E501
159
160        :param text_metadata: The text_metadata of this ListItem.  # noqa: E501
161        :type: PropertyMetadata
162        """
163
164        self._text_metadata = text_metadata
165
166    @property
167    def value(self):
168        """Gets the value of this ListItem.  # noqa: E501
169
170        Specifies the value that is used when the list item is selected.  # noqa: E501
171
172        :return: The value of this ListItem.  # noqa: E501
173        :rtype: str
174        """
175        return self._value
176
177    @value.setter
178    def value(self, value):
179        """Sets the value of this ListItem.
180
181        Specifies the value that is used when the list item is selected.  # noqa: E501
182
183        :param value: The value of this ListItem.  # noqa: E501
184        :type: str
185        """
186
187        self._value = value
188
189    @property
190    def value_metadata(self):
191        """Gets the value_metadata of this ListItem.  # noqa: E501
192
193        Metadata that indicates whether the `value` property is editable.  # noqa: E501
194
195        :return: The value_metadata of this ListItem.  # noqa: E501
196        :rtype: PropertyMetadata
197        """
198        return self._value_metadata
199
200    @value_metadata.setter
201    def value_metadata(self, value_metadata):
202        """Sets the value_metadata of this ListItem.
203
204        Metadata that indicates whether the `value` property is editable.  # noqa: E501
205
206        :param value_metadata: The value_metadata of this ListItem.  # noqa: E501
207        :type: PropertyMetadata
208        """
209
210        self._value_metadata = value_metadata
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(ListItem, 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, ListItem):
250            return False
251
252        return self.to_dict() == other.to_dict()
253
254    def __ne__(self, other):
255        """Returns true if both objects are not equal"""
256        if not isinstance(other, ListItem):
257            return True
258
259        return self.to_dict() != other.to_dict()
class ListItem:
 23class ListItem(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        'selected': 'str',
 38        'selected_metadata': 'PropertyMetadata',
 39        'text': 'str',
 40        'text_metadata': 'PropertyMetadata',
 41        'value': 'str',
 42        'value_metadata': 'PropertyMetadata'
 43    }
 44
 45    attribute_map = {
 46        'selected': 'selected',
 47        'selected_metadata': 'selectedMetadata',
 48        'text': 'text',
 49        'text_metadata': 'textMetadata',
 50        'value': 'value',
 51        'value_metadata': 'valueMetadata'
 52    }
 53
 54    def __init__(self, _configuration=None, **kwargs):  # noqa: E501
 55        """ListItem - a model defined in Swagger"""  # noqa: E501
 56        if _configuration is None:
 57            _configuration = Configuration()
 58        self._configuration = _configuration
 59
 60        self._selected = None
 61        self._selected_metadata = None
 62        self._text = None
 63        self._text_metadata = None
 64        self._value = None
 65        self._value_metadata = None
 66        self.discriminator = None
 67
 68        setattr(self, "_{}".format('selected'), kwargs.get('selected', None))
 69        setattr(self, "_{}".format('selected_metadata'), kwargs.get('selected_metadata', None))
 70        setattr(self, "_{}".format('text'), kwargs.get('text', None))
 71        setattr(self, "_{}".format('text_metadata'), kwargs.get('text_metadata', None))
 72        setattr(self, "_{}".format('value'), kwargs.get('value', None))
 73        setattr(self, "_{}".format('value_metadata'), kwargs.get('value_metadata', None))
 74
 75    @property
 76    def selected(self):
 77        """Gets the selected of this ListItem.  # noqa: E501
 78
 79        When set to **true**, indicates that this item is the default selection shown to a signer.   Only one selection can be set as the default.  # noqa: E501
 80
 81        :return: The selected of this ListItem.  # noqa: E501
 82        :rtype: str
 83        """
 84        return self._selected
 85
 86    @selected.setter
 87    def selected(self, selected):
 88        """Sets the selected of this ListItem.
 89
 90        When set to **true**, indicates that this item is the default selection shown to a signer.   Only one selection can be set as the default.  # noqa: E501
 91
 92        :param selected: The selected of this ListItem.  # noqa: E501
 93        :type: str
 94        """
 95
 96        self._selected = selected
 97
 98    @property
 99    def selected_metadata(self):
100        """Gets the selected_metadata of this ListItem.  # noqa: E501
101
102        Metadata that indicates whether the `selected` property is editable.  # noqa: E501
103
104        :return: The selected_metadata of this ListItem.  # noqa: E501
105        :rtype: PropertyMetadata
106        """
107        return self._selected_metadata
108
109    @selected_metadata.setter
110    def selected_metadata(self, selected_metadata):
111        """Sets the selected_metadata of this ListItem.
112
113        Metadata that indicates whether the `selected` property is editable.  # noqa: E501
114
115        :param selected_metadata: The selected_metadata of this ListItem.  # noqa: E501
116        :type: PropertyMetadata
117        """
118
119        self._selected_metadata = selected_metadata
120
121    @property
122    def text(self):
123        """Gets the text of this ListItem.  # noqa: E501
124
125        Specifies the text that is shown in the dropdown list.   # noqa: E501
126
127        :return: The text of this ListItem.  # noqa: E501
128        :rtype: str
129        """
130        return self._text
131
132    @text.setter
133    def text(self, text):
134        """Sets the text of this ListItem.
135
136        Specifies the text that is shown in the dropdown list.   # noqa: E501
137
138        :param text: The text of this ListItem.  # noqa: E501
139        :type: str
140        """
141
142        self._text = text
143
144    @property
145    def text_metadata(self):
146        """Gets the text_metadata of this ListItem.  # noqa: E501
147
148          # noqa: E501
149
150        :return: The text_metadata of this ListItem.  # noqa: E501
151        :rtype: PropertyMetadata
152        """
153        return self._text_metadata
154
155    @text_metadata.setter
156    def text_metadata(self, text_metadata):
157        """Sets the text_metadata of this ListItem.
158
159          # noqa: E501
160
161        :param text_metadata: The text_metadata of this ListItem.  # noqa: E501
162        :type: PropertyMetadata
163        """
164
165        self._text_metadata = text_metadata
166
167    @property
168    def value(self):
169        """Gets the value of this ListItem.  # noqa: E501
170
171        Specifies the value that is used when the list item is selected.  # noqa: E501
172
173        :return: The value of this ListItem.  # noqa: E501
174        :rtype: str
175        """
176        return self._value
177
178    @value.setter
179    def value(self, value):
180        """Sets the value of this ListItem.
181
182        Specifies the value that is used when the list item is selected.  # noqa: E501
183
184        :param value: The value of this ListItem.  # noqa: E501
185        :type: str
186        """
187
188        self._value = value
189
190    @property
191    def value_metadata(self):
192        """Gets the value_metadata of this ListItem.  # noqa: E501
193
194        Metadata that indicates whether the `value` property is editable.  # noqa: E501
195
196        :return: The value_metadata of this ListItem.  # noqa: E501
197        :rtype: PropertyMetadata
198        """
199        return self._value_metadata
200
201    @value_metadata.setter
202    def value_metadata(self, value_metadata):
203        """Sets the value_metadata of this ListItem.
204
205        Metadata that indicates whether the `value` property is editable.  # noqa: E501
206
207        :param value_metadata: The value_metadata of this ListItem.  # noqa: E501
208        :type: PropertyMetadata
209        """
210
211        self._value_metadata = value_metadata
212
213    def to_dict(self):
214        """Returns the model properties as a dict"""
215        result = {}
216
217        for attr, _ in six.iteritems(self.swagger_types):
218            value = getattr(self, attr)
219            if isinstance(value, list):
220                result[attr] = list(map(
221                    lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
222                    value
223                ))
224            elif hasattr(value, "to_dict"):
225                result[attr] = value.to_dict()
226            elif isinstance(value, dict):
227                result[attr] = dict(map(
228                    lambda item: (item[0], item[1].to_dict())
229                    if hasattr(item[1], "to_dict") else item,
230                    value.items()
231                ))
232            else:
233                result[attr] = value
234        if issubclass(ListItem, dict):
235            for key, value in self.items():
236                result[key] = value
237
238        return result
239
240    def to_str(self):
241        """Returns the string representation of the model"""
242        return pprint.pformat(self.to_dict())
243
244    def __repr__(self):
245        """For `print` and `pprint`"""
246        return self.to_str()
247
248    def __eq__(self, other):
249        """Returns true if both objects are equal"""
250        if not isinstance(other, ListItem):
251            return False
252
253        return self.to_dict() == other.to_dict()
254
255    def __ne__(self, other):
256        """Returns true if both objects are not equal"""
257        if not isinstance(other, ListItem):
258            return True
259
260        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.

ListItem(_configuration=None, **kwargs)
54    def __init__(self, _configuration=None, **kwargs):  # noqa: E501
55        """ListItem - a model defined in Swagger"""  # noqa: E501
56        if _configuration is None:
57            _configuration = Configuration()
58        self._configuration = _configuration
59
60        self._selected = None
61        self._selected_metadata = None
62        self._text = None
63        self._text_metadata = None
64        self._value = None
65        self._value_metadata = None
66        self.discriminator = None
67
68        setattr(self, "_{}".format('selected'), kwargs.get('selected', None))
69        setattr(self, "_{}".format('selected_metadata'), kwargs.get('selected_metadata', None))
70        setattr(self, "_{}".format('text'), kwargs.get('text', None))
71        setattr(self, "_{}".format('text_metadata'), kwargs.get('text_metadata', None))
72        setattr(self, "_{}".format('value'), kwargs.get('value', None))
73        setattr(self, "_{}".format('value_metadata'), kwargs.get('value_metadata', None))

ListItem - a model defined in Swagger

swagger_types = {'selected': 'str', 'selected_metadata': 'PropertyMetadata', 'text': 'str', 'text_metadata': 'PropertyMetadata', 'value': 'str', 'value_metadata': 'PropertyMetadata'}
attribute_map = {'selected': 'selected', 'selected_metadata': 'selectedMetadata', 'text': 'text', 'text_metadata': 'textMetadata', 'value': 'value', 'value_metadata': 'valueMetadata'}
selected

Gets the selected of this ListItem. # noqa: E501

When set to true, indicates that this item is the default selection shown to a signer. Only one selection can be set as the default. # noqa: E501

Returns

The selected of this ListItem. # noqa: E501

selected_metadata

Gets the selected_metadata of this ListItem. # noqa: E501

Metadata that indicates whether the selected property is editable. # noqa: E501

Returns

The selected_metadata of this ListItem. # noqa: E501

text

Gets the text of this ListItem. # noqa: E501

Specifies the text that is shown in the dropdown list. # noqa: E501

Returns

The text of this ListItem. # noqa: E501

text_metadata

Gets the text_metadata of this ListItem. # noqa: E501

# noqa: E501

Returns

The text_metadata of this ListItem. # noqa: E501

value

Gets the value of this ListItem. # noqa: E501

Specifies the value that is used when the list item is selected. # noqa: E501

Returns

The value of this ListItem. # noqa: E501

value_metadata

Gets the value_metadata of this ListItem. # noqa: E501

Metadata that indicates whether the value property is editable. # noqa: E501

Returns

The value_metadata of this ListItem. # noqa: E501

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

Returns the model properties as a dict

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

Returns the string representation of the model