docusign_esign.models.tsp_health_check_request
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 TspHealthCheckRequest(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 'app_version': 'str', 35 'description': 'str', 36 'error': 'str', 37 'status': 'str', 38 'status_description': 'list[TspHealthCheckStatusDescription]' 39 } 40 41 attribute_map = { 42 'app_version': 'appVersion', 43 'description': 'description', 44 'error': 'error', 45 'status': 'status', 46 'status_description': 'statusDescription' 47 } 48 49 def __init__(self, app_version=None, description=None, error=None, status=None, status_description=None): # noqa: E501 50 """TspHealthCheckRequest - a model defined in Swagger""" # noqa: E501 51 52 self._app_version = None 53 self._description = None 54 self._error = None 55 self._status = None 56 self._status_description = None 57 self.discriminator = None 58 59 if app_version is not None: 60 self.app_version = app_version 61 if description is not None: 62 self.description = description 63 if error is not None: 64 self.error = error 65 if status is not None: 66 self.status = status 67 if status_description is not None: 68 self.status_description = status_description 69 70 @property 71 def app_version(self): 72 """Gets the app_version of this TspHealthCheckRequest. # noqa: E501 73 74 # noqa: E501 75 76 :return: The app_version of this TspHealthCheckRequest. # noqa: E501 77 :rtype: str 78 """ 79 return self._app_version 80 81 @app_version.setter 82 def app_version(self, app_version): 83 """Sets the app_version of this TspHealthCheckRequest. 84 85 # noqa: E501 86 87 :param app_version: The app_version of this TspHealthCheckRequest. # noqa: E501 88 :type: str 89 """ 90 91 self._app_version = app_version 92 93 @property 94 def description(self): 95 """Gets the description of this TspHealthCheckRequest. # noqa: E501 96 97 # noqa: E501 98 99 :return: The description of this TspHealthCheckRequest. # noqa: E501 100 :rtype: str 101 """ 102 return self._description 103 104 @description.setter 105 def description(self, description): 106 """Sets the description of this TspHealthCheckRequest. 107 108 # noqa: E501 109 110 :param description: The description of this TspHealthCheckRequest. # noqa: E501 111 :type: str 112 """ 113 114 self._description = description 115 116 @property 117 def error(self): 118 """Gets the error of this TspHealthCheckRequest. # noqa: E501 119 120 # noqa: E501 121 122 :return: The error of this TspHealthCheckRequest. # noqa: E501 123 :rtype: str 124 """ 125 return self._error 126 127 @error.setter 128 def error(self, error): 129 """Sets the error of this TspHealthCheckRequest. 130 131 # noqa: E501 132 133 :param error: The error of this TspHealthCheckRequest. # noqa: E501 134 :type: str 135 """ 136 137 self._error = error 138 139 @property 140 def status(self): 141 """Gets the status of this TspHealthCheckRequest. # noqa: E501 142 143 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 144 145 :return: The status of this TspHealthCheckRequest. # noqa: E501 146 :rtype: str 147 """ 148 return self._status 149 150 @status.setter 151 def status(self, status): 152 """Sets the status of this TspHealthCheckRequest. 153 154 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 155 156 :param status: The status of this TspHealthCheckRequest. # noqa: E501 157 :type: str 158 """ 159 160 self._status = status 161 162 @property 163 def status_description(self): 164 """Gets the status_description of this TspHealthCheckRequest. # noqa: E501 165 166 # noqa: E501 167 168 :return: The status_description of this TspHealthCheckRequest. # noqa: E501 169 :rtype: list[TspHealthCheckStatusDescription] 170 """ 171 return self._status_description 172 173 @status_description.setter 174 def status_description(self, status_description): 175 """Sets the status_description of this TspHealthCheckRequest. 176 177 # noqa: E501 178 179 :param status_description: The status_description of this TspHealthCheckRequest. # noqa: E501 180 :type: list[TspHealthCheckStatusDescription] 181 """ 182 183 self._status_description = status_description 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(TspHealthCheckRequest, 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, TspHealthCheckRequest): 223 return False 224 225 return self.__dict__ == other.__dict__ 226 227 def __ne__(self, other): 228 """Returns true if both objects are not equal""" 229 return not self == other
21class TspHealthCheckRequest(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 'app_version': 'str', 36 'description': 'str', 37 'error': 'str', 38 'status': 'str', 39 'status_description': 'list[TspHealthCheckStatusDescription]' 40 } 41 42 attribute_map = { 43 'app_version': 'appVersion', 44 'description': 'description', 45 'error': 'error', 46 'status': 'status', 47 'status_description': 'statusDescription' 48 } 49 50 def __init__(self, app_version=None, description=None, error=None, status=None, status_description=None): # noqa: E501 51 """TspHealthCheckRequest - a model defined in Swagger""" # noqa: E501 52 53 self._app_version = None 54 self._description = None 55 self._error = None 56 self._status = None 57 self._status_description = None 58 self.discriminator = None 59 60 if app_version is not None: 61 self.app_version = app_version 62 if description is not None: 63 self.description = description 64 if error is not None: 65 self.error = error 66 if status is not None: 67 self.status = status 68 if status_description is not None: 69 self.status_description = status_description 70 71 @property 72 def app_version(self): 73 """Gets the app_version of this TspHealthCheckRequest. # noqa: E501 74 75 # noqa: E501 76 77 :return: The app_version of this TspHealthCheckRequest. # noqa: E501 78 :rtype: str 79 """ 80 return self._app_version 81 82 @app_version.setter 83 def app_version(self, app_version): 84 """Sets the app_version of this TspHealthCheckRequest. 85 86 # noqa: E501 87 88 :param app_version: The app_version of this TspHealthCheckRequest. # noqa: E501 89 :type: str 90 """ 91 92 self._app_version = app_version 93 94 @property 95 def description(self): 96 """Gets the description of this TspHealthCheckRequest. # noqa: E501 97 98 # noqa: E501 99 100 :return: The description of this TspHealthCheckRequest. # noqa: E501 101 :rtype: str 102 """ 103 return self._description 104 105 @description.setter 106 def description(self, description): 107 """Sets the description of this TspHealthCheckRequest. 108 109 # noqa: E501 110 111 :param description: The description of this TspHealthCheckRequest. # noqa: E501 112 :type: str 113 """ 114 115 self._description = description 116 117 @property 118 def error(self): 119 """Gets the error of this TspHealthCheckRequest. # noqa: E501 120 121 # noqa: E501 122 123 :return: The error of this TspHealthCheckRequest. # noqa: E501 124 :rtype: str 125 """ 126 return self._error 127 128 @error.setter 129 def error(self, error): 130 """Sets the error of this TspHealthCheckRequest. 131 132 # noqa: E501 133 134 :param error: The error of this TspHealthCheckRequest. # noqa: E501 135 :type: str 136 """ 137 138 self._error = error 139 140 @property 141 def status(self): 142 """Gets the status of this TspHealthCheckRequest. # noqa: E501 143 144 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 145 146 :return: The status of this TspHealthCheckRequest. # noqa: E501 147 :rtype: str 148 """ 149 return self._status 150 151 @status.setter 152 def status(self, status): 153 """Sets the status of this TspHealthCheckRequest. 154 155 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 156 157 :param status: The status of this TspHealthCheckRequest. # noqa: E501 158 :type: str 159 """ 160 161 self._status = status 162 163 @property 164 def status_description(self): 165 """Gets the status_description of this TspHealthCheckRequest. # noqa: E501 166 167 # noqa: E501 168 169 :return: The status_description of this TspHealthCheckRequest. # noqa: E501 170 :rtype: list[TspHealthCheckStatusDescription] 171 """ 172 return self._status_description 173 174 @status_description.setter 175 def status_description(self, status_description): 176 """Sets the status_description of this TspHealthCheckRequest. 177 178 # noqa: E501 179 180 :param status_description: The status_description of this TspHealthCheckRequest. # noqa: E501 181 :type: list[TspHealthCheckStatusDescription] 182 """ 183 184 self._status_description = status_description 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(TspHealthCheckRequest, 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, TspHealthCheckRequest): 224 return False 225 226 return self.__dict__ == other.__dict__ 227 228 def __ne__(self, other): 229 """Returns true if both objects are not equal""" 230 return not self == other
NOTE: This class is auto generated by the swagger code generator program.
Do not edit the class manually.
50 def __init__(self, app_version=None, description=None, error=None, status=None, status_description=None): # noqa: E501 51 """TspHealthCheckRequest - a model defined in Swagger""" # noqa: E501 52 53 self._app_version = None 54 self._description = None 55 self._error = None 56 self._status = None 57 self._status_description = None 58 self.discriminator = None 59 60 if app_version is not None: 61 self.app_version = app_version 62 if description is not None: 63 self.description = description 64 if error is not None: 65 self.error = error 66 if status is not None: 67 self.status = status 68 if status_description is not None: 69 self.status_description = status_description
TspHealthCheckRequest - a model defined in Swagger
Gets the app_version of this TspHealthCheckRequest. # noqa: E501
# noqa: E501
Returns
The app_version of this TspHealthCheckRequest. # noqa: E501
Gets the description of this TspHealthCheckRequest. # noqa: E501
# noqa: E501
Returns
The description of this TspHealthCheckRequest. # noqa: E501
Gets the error of this TspHealthCheckRequest. # noqa: E501
# noqa: E501
Returns
The error of this TspHealthCheckRequest. # noqa: E501
Gets the status of this TspHealthCheckRequest. # 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 TspHealthCheckRequest. # noqa: E501
Gets the status_description of this TspHealthCheckRequest. # noqa: E501
# noqa: E501
Returns
The status_description of this TspHealthCheckRequest. # noqa: E501
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(TspHealthCheckRequest, dict): 208 for key, value in self.items(): 209 result[key] = value 210 211 return result
Returns the model properties as a dict