docusign_esign.models.workspace_list

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 WorkspaceList(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        'end_position': 'str',
 37        'result_set_size': 'str',
 38        'start_position': 'str',
 39        'total_set_size': 'str',
 40        'workspaces': 'list[Workspace]'
 41    }
 42
 43    attribute_map = {
 44        'end_position': 'endPosition',
 45        'result_set_size': 'resultSetSize',
 46        'start_position': 'startPosition',
 47        'total_set_size': 'totalSetSize',
 48        'workspaces': 'workspaces'
 49    }
 50
 51    def __init__(self, _configuration=None, **kwargs):  # noqa: E501
 52        """WorkspaceList - a model defined in Swagger"""  # noqa: E501
 53        if _configuration is None:
 54            _configuration = Configuration()
 55        self._configuration = _configuration
 56
 57        self._end_position = None
 58        self._result_set_size = None
 59        self._start_position = None
 60        self._total_set_size = None
 61        self._workspaces = None
 62        self.discriminator = None
 63
 64        setattr(self, "_{}".format('end_position'), kwargs.get('end_position', None))
 65        setattr(self, "_{}".format('result_set_size'), kwargs.get('result_set_size', None))
 66        setattr(self, "_{}".format('start_position'), kwargs.get('start_position', None))
 67        setattr(self, "_{}".format('total_set_size'), kwargs.get('total_set_size', None))
 68        setattr(self, "_{}".format('workspaces'), kwargs.get('workspaces', None))
 69
 70    @property
 71    def end_position(self):
 72        """Gets the end_position of this WorkspaceList.  # noqa: E501
 73
 74        The last position in the result set.   # noqa: E501
 75
 76        :return: The end_position of this WorkspaceList.  # noqa: E501
 77        :rtype: str
 78        """
 79        return self._end_position
 80
 81    @end_position.setter
 82    def end_position(self, end_position):
 83        """Sets the end_position of this WorkspaceList.
 84
 85        The last position in the result set.   # noqa: E501
 86
 87        :param end_position: The end_position of this WorkspaceList.  # noqa: E501
 88        :type: str
 89        """
 90
 91        self._end_position = end_position
 92
 93    @property
 94    def result_set_size(self):
 95        """Gets the result_set_size of this WorkspaceList.  # noqa: E501
 96
 97        The number of results returned in this response.   # noqa: E501
 98
 99        :return: The result_set_size of this WorkspaceList.  # noqa: E501
100        :rtype: str
101        """
102        return self._result_set_size
103
104    @result_set_size.setter
105    def result_set_size(self, result_set_size):
106        """Sets the result_set_size of this WorkspaceList.
107
108        The number of results returned in this response.   # noqa: E501
109
110        :param result_set_size: The result_set_size of this WorkspaceList.  # noqa: E501
111        :type: str
112        """
113
114        self._result_set_size = result_set_size
115
116    @property
117    def start_position(self):
118        """Gets the start_position of this WorkspaceList.  # noqa: E501
119
120        Starting position of the current result set.  # noqa: E501
121
122        :return: The start_position of this WorkspaceList.  # noqa: E501
123        :rtype: str
124        """
125        return self._start_position
126
127    @start_position.setter
128    def start_position(self, start_position):
129        """Sets the start_position of this WorkspaceList.
130
131        Starting position of the current result set.  # noqa: E501
132
133        :param start_position: The start_position of this WorkspaceList.  # noqa: E501
134        :type: str
135        """
136
137        self._start_position = start_position
138
139    @property
140    def total_set_size(self):
141        """Gets the total_set_size of this WorkspaceList.  # noqa: E501
142
143        The total number of items available in the result set. This will always be greater than or equal to the value of the property returning the results in the in the response.  # noqa: E501
144
145        :return: The total_set_size of this WorkspaceList.  # noqa: E501
146        :rtype: str
147        """
148        return self._total_set_size
149
150    @total_set_size.setter
151    def total_set_size(self, total_set_size):
152        """Sets the total_set_size of this WorkspaceList.
153
154        The total number of items available in the result set. This will always be greater than or equal to the value of the property returning the results in the in the response.  # noqa: E501
155
156        :param total_set_size: The total_set_size of this WorkspaceList.  # noqa: E501
157        :type: str
158        """
159
160        self._total_set_size = total_set_size
161
162    @property
163    def workspaces(self):
164        """Gets the workspaces of this WorkspaceList.  # noqa: E501
165
166        A list of workspaces.  # noqa: E501
167
168        :return: The workspaces of this WorkspaceList.  # noqa: E501
169        :rtype: list[Workspace]
170        """
171        return self._workspaces
172
173    @workspaces.setter
174    def workspaces(self, workspaces):
175        """Sets the workspaces of this WorkspaceList.
176
177        A list of workspaces.  # noqa: E501
178
179        :param workspaces: The workspaces of this WorkspaceList.  # noqa: E501
180        :type: list[Workspace]
181        """
182
183        self._workspaces = workspaces
184
185    def to_dict(self):
186        """Returns the model properties as a dict"""
187        result = {}
188
189        for attr, _ in six.iteritems(self.swagger_types):
190            value = getattr(self, attr)
191            if isinstance(value, list):
192                result[attr] = list(map(
193                    lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
194                    value
195                ))
196            elif hasattr(value, "to_dict"):
197                result[attr] = value.to_dict()
198            elif isinstance(value, dict):
199                result[attr] = dict(map(
200                    lambda item: (item[0], item[1].to_dict())
201                    if hasattr(item[1], "to_dict") else item,
202                    value.items()
203                ))
204            else:
205                result[attr] = value
206        if issubclass(WorkspaceList, dict):
207            for key, value in self.items():
208                result[key] = value
209
210        return result
211
212    def to_str(self):
213        """Returns the string representation of the model"""
214        return pprint.pformat(self.to_dict())
215
216    def __repr__(self):
217        """For `print` and `pprint`"""
218        return self.to_str()
219
220    def __eq__(self, other):
221        """Returns true if both objects are equal"""
222        if not isinstance(other, WorkspaceList):
223            return False
224
225        return self.to_dict() == other.to_dict()
226
227    def __ne__(self, other):
228        """Returns true if both objects are not equal"""
229        if not isinstance(other, WorkspaceList):
230            return True
231
232        return self.to_dict() != other.to_dict()
class WorkspaceList:
 23class WorkspaceList(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        'end_position': 'str',
 38        'result_set_size': 'str',
 39        'start_position': 'str',
 40        'total_set_size': 'str',
 41        'workspaces': 'list[Workspace]'
 42    }
 43
 44    attribute_map = {
 45        'end_position': 'endPosition',
 46        'result_set_size': 'resultSetSize',
 47        'start_position': 'startPosition',
 48        'total_set_size': 'totalSetSize',
 49        'workspaces': 'workspaces'
 50    }
 51
 52    def __init__(self, _configuration=None, **kwargs):  # noqa: E501
 53        """WorkspaceList - a model defined in Swagger"""  # noqa: E501
 54        if _configuration is None:
 55            _configuration = Configuration()
 56        self._configuration = _configuration
 57
 58        self._end_position = None
 59        self._result_set_size = None
 60        self._start_position = None
 61        self._total_set_size = None
 62        self._workspaces = None
 63        self.discriminator = None
 64
 65        setattr(self, "_{}".format('end_position'), kwargs.get('end_position', None))
 66        setattr(self, "_{}".format('result_set_size'), kwargs.get('result_set_size', None))
 67        setattr(self, "_{}".format('start_position'), kwargs.get('start_position', None))
 68        setattr(self, "_{}".format('total_set_size'), kwargs.get('total_set_size', None))
 69        setattr(self, "_{}".format('workspaces'), kwargs.get('workspaces', None))
 70
 71    @property
 72    def end_position(self):
 73        """Gets the end_position of this WorkspaceList.  # noqa: E501
 74
 75        The last position in the result set.   # noqa: E501
 76
 77        :return: The end_position of this WorkspaceList.  # noqa: E501
 78        :rtype: str
 79        """
 80        return self._end_position
 81
 82    @end_position.setter
 83    def end_position(self, end_position):
 84        """Sets the end_position of this WorkspaceList.
 85
 86        The last position in the result set.   # noqa: E501
 87
 88        :param end_position: The end_position of this WorkspaceList.  # noqa: E501
 89        :type: str
 90        """
 91
 92        self._end_position = end_position
 93
 94    @property
 95    def result_set_size(self):
 96        """Gets the result_set_size of this WorkspaceList.  # noqa: E501
 97
 98        The number of results returned in this response.   # noqa: E501
 99
100        :return: The result_set_size of this WorkspaceList.  # noqa: E501
101        :rtype: str
102        """
103        return self._result_set_size
104
105    @result_set_size.setter
106    def result_set_size(self, result_set_size):
107        """Sets the result_set_size of this WorkspaceList.
108
109        The number of results returned in this response.   # noqa: E501
110
111        :param result_set_size: The result_set_size of this WorkspaceList.  # noqa: E501
112        :type: str
113        """
114
115        self._result_set_size = result_set_size
116
117    @property
118    def start_position(self):
119        """Gets the start_position of this WorkspaceList.  # noqa: E501
120
121        Starting position of the current result set.  # noqa: E501
122
123        :return: The start_position of this WorkspaceList.  # noqa: E501
124        :rtype: str
125        """
126        return self._start_position
127
128    @start_position.setter
129    def start_position(self, start_position):
130        """Sets the start_position of this WorkspaceList.
131
132        Starting position of the current result set.  # noqa: E501
133
134        :param start_position: The start_position of this WorkspaceList.  # noqa: E501
135        :type: str
136        """
137
138        self._start_position = start_position
139
140    @property
141    def total_set_size(self):
142        """Gets the total_set_size of this WorkspaceList.  # noqa: E501
143
144        The total number of items available in the result set. This will always be greater than or equal to the value of the property returning the results in the in the response.  # noqa: E501
145
146        :return: The total_set_size of this WorkspaceList.  # noqa: E501
147        :rtype: str
148        """
149        return self._total_set_size
150
151    @total_set_size.setter
152    def total_set_size(self, total_set_size):
153        """Sets the total_set_size of this WorkspaceList.
154
155        The total number of items available in the result set. This will always be greater than or equal to the value of the property returning the results in the in the response.  # noqa: E501
156
157        :param total_set_size: The total_set_size of this WorkspaceList.  # noqa: E501
158        :type: str
159        """
160
161        self._total_set_size = total_set_size
162
163    @property
164    def workspaces(self):
165        """Gets the workspaces of this WorkspaceList.  # noqa: E501
166
167        A list of workspaces.  # noqa: E501
168
169        :return: The workspaces of this WorkspaceList.  # noqa: E501
170        :rtype: list[Workspace]
171        """
172        return self._workspaces
173
174    @workspaces.setter
175    def workspaces(self, workspaces):
176        """Sets the workspaces of this WorkspaceList.
177
178        A list of workspaces.  # noqa: E501
179
180        :param workspaces: The workspaces of this WorkspaceList.  # noqa: E501
181        :type: list[Workspace]
182        """
183
184        self._workspaces = workspaces
185
186    def to_dict(self):
187        """Returns the model properties as a dict"""
188        result = {}
189
190        for attr, _ in six.iteritems(self.swagger_types):
191            value = getattr(self, attr)
192            if isinstance(value, list):
193                result[attr] = list(map(
194                    lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
195                    value
196                ))
197            elif hasattr(value, "to_dict"):
198                result[attr] = value.to_dict()
199            elif isinstance(value, dict):
200                result[attr] = dict(map(
201                    lambda item: (item[0], item[1].to_dict())
202                    if hasattr(item[1], "to_dict") else item,
203                    value.items()
204                ))
205            else:
206                result[attr] = value
207        if issubclass(WorkspaceList, dict):
208            for key, value in self.items():
209                result[key] = value
210
211        return result
212
213    def to_str(self):
214        """Returns the string representation of the model"""
215        return pprint.pformat(self.to_dict())
216
217    def __repr__(self):
218        """For `print` and `pprint`"""
219        return self.to_str()
220
221    def __eq__(self, other):
222        """Returns true if both objects are equal"""
223        if not isinstance(other, WorkspaceList):
224            return False
225
226        return self.to_dict() == other.to_dict()
227
228    def __ne__(self, other):
229        """Returns true if both objects are not equal"""
230        if not isinstance(other, WorkspaceList):
231            return True
232
233        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.

WorkspaceList(_configuration=None, **kwargs)
52    def __init__(self, _configuration=None, **kwargs):  # noqa: E501
53        """WorkspaceList - a model defined in Swagger"""  # noqa: E501
54        if _configuration is None:
55            _configuration = Configuration()
56        self._configuration = _configuration
57
58        self._end_position = None
59        self._result_set_size = None
60        self._start_position = None
61        self._total_set_size = None
62        self._workspaces = None
63        self.discriminator = None
64
65        setattr(self, "_{}".format('end_position'), kwargs.get('end_position', None))
66        setattr(self, "_{}".format('result_set_size'), kwargs.get('result_set_size', None))
67        setattr(self, "_{}".format('start_position'), kwargs.get('start_position', None))
68        setattr(self, "_{}".format('total_set_size'), kwargs.get('total_set_size', None))
69        setattr(self, "_{}".format('workspaces'), kwargs.get('workspaces', None))

WorkspaceList - a model defined in Swagger

swagger_types = {'end_position': 'str', 'result_set_size': 'str', 'start_position': 'str', 'total_set_size': 'str', 'workspaces': 'list[Workspace]'}
attribute_map = {'end_position': 'endPosition', 'result_set_size': 'resultSetSize', 'start_position': 'startPosition', 'total_set_size': 'totalSetSize', 'workspaces': 'workspaces'}
end_position

Gets the end_position of this WorkspaceList. # noqa: E501

The last position in the result set. # noqa: E501

Returns

The end_position of this WorkspaceList. # noqa: E501

result_set_size

Gets the result_set_size of this WorkspaceList. # noqa: E501

The number of results returned in this response. # noqa: E501

Returns

The result_set_size of this WorkspaceList. # noqa: E501

start_position

Gets the start_position of this WorkspaceList. # noqa: E501

Starting position of the current result set. # noqa: E501

Returns

The start_position of this WorkspaceList. # noqa: E501

total_set_size

Gets the total_set_size of this WorkspaceList. # noqa: E501

The total number of items available in the result set. This will always be greater than or equal to the value of the property returning the results in the in the response. # noqa: E501

Returns

The total_set_size of this WorkspaceList. # noqa: E501

workspaces

Gets the workspaces of this WorkspaceList. # noqa: E501

A list of workspaces. # noqa: E501

Returns

The workspaces of this WorkspaceList. # noqa: E501

def to_dict(self)
186    def to_dict(self):
187        """Returns the model properties as a dict"""
188        result = {}
189
190        for attr, _ in six.iteritems(self.swagger_types):
191            value = getattr(self, attr)
192            if isinstance(value, list):
193                result[attr] = list(map(
194                    lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
195                    value
196                ))
197            elif hasattr(value, "to_dict"):
198                result[attr] = value.to_dict()
199            elif isinstance(value, dict):
200                result[attr] = dict(map(
201                    lambda item: (item[0], item[1].to_dict())
202                    if hasattr(item[1], "to_dict") else item,
203                    value.items()
204                ))
205            else:
206                result[attr] = value
207        if issubclass(WorkspaceList, dict):
208            for key, value in self.items():
209                result[key] = value
210
211        return result

Returns the model properties as a dict

def to_str(self)
213    def to_str(self):
214        """Returns the string representation of the model"""
215        return pprint.pformat(self.to_dict())

Returns the string representation of the model