docusign_esign.models.tsp_health_check_status_description

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

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

Do not edit the class manually.

TspHealthCheckStatusDescription( description=None, error=None, hostname=None, response_seconds=None, status=None, type=None)
52    def __init__(self, description=None, error=None, hostname=None, response_seconds=None, status=None, type=None):  # noqa: E501
53        """TspHealthCheckStatusDescription - a model defined in Swagger"""  # noqa: E501
54
55        self._description = None
56        self._error = None
57        self._hostname = None
58        self._response_seconds = None
59        self._status = None
60        self._type = None
61        self.discriminator = None
62
63        if description is not None:
64            self.description = description
65        if error is not None:
66            self.error = error
67        if hostname is not None:
68            self.hostname = hostname
69        if response_seconds is not None:
70            self.response_seconds = response_seconds
71        if status is not None:
72            self.status = status
73        if type is not None:
74            self.type = type

TspHealthCheckStatusDescription - a model defined in Swagger

swagger_types = {'description': 'str', 'error': 'str', 'hostname': 'str', 'response_seconds': 'str', 'status': 'str', 'type': 'str'}
attribute_map = {'description': 'description', 'error': 'error', 'hostname': 'hostname', 'response_seconds': 'responseSeconds', 'status': 'status', 'type': 'type'}
description

Gets the description of this TspHealthCheckStatusDescription. # noqa: E501

# noqa: E501

Returns

The description of this TspHealthCheckStatusDescription. # noqa: E501

error

Gets the error of this TspHealthCheckStatusDescription. # noqa: E501

# noqa: E501

Returns

The error of this TspHealthCheckStatusDescription. # noqa: E501

hostname

Gets the hostname of this TspHealthCheckStatusDescription. # noqa: E501

# noqa: E501

Returns

The hostname of this TspHealthCheckStatusDescription. # noqa: E501

response_seconds

Gets the response_seconds of this TspHealthCheckStatusDescription. # noqa: E501

# noqa: E501

Returns

The response_seconds of this TspHealthCheckStatusDescription. # noqa: E501

status

Gets the status of this TspHealthCheckStatusDescription. # noqa: E501

Indicates the envelope status. Valid values are: * sent - The envelope is sent to the recipients. * created - The envelope is saved as a draft and can be modified and sent later. # noqa: E501

Returns

The status of this TspHealthCheckStatusDescription. # noqa: E501

type

Gets the type of this TspHealthCheckStatusDescription. # noqa: E501

# noqa: E501

Returns

The type of this TspHealthCheckStatusDescription. # noqa: E501

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

Returns the model properties as a dict

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

Returns the string representation of the model