docusign_esign.models.credential
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 Credential(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 'access_code': 'str', 35 'type': 'str', 36 'value': 'str' 37 } 38 39 attribute_map = { 40 'access_code': 'accessCode', 41 'type': 'type', 42 'value': 'value' 43 } 44 45 def __init__(self, access_code=None, type=None, value=None): # noqa: E501 46 """Credential - a model defined in Swagger""" # noqa: E501 47 48 self._access_code = None 49 self._type = None 50 self._value = None 51 self.discriminator = None 52 53 if access_code is not None: 54 self.access_code = access_code 55 if type is not None: 56 self.type = type 57 if value is not None: 58 self.value = value 59 60 @property 61 def access_code(self): 62 """Gets the access_code of this Credential. # noqa: E501 63 64 If a value is provided, the recipient must enter the value as the access code to view and sign the envelope. Maximum Length: 50 characters and it must conform to the account's access code format setting. If blank, but the signer `accessCode` property is set in the envelope, then that value is used. If blank and the signer `accessCode` property is not set, then the access code is not required. # noqa: E501 65 66 :return: The access_code of this Credential. # noqa: E501 67 :rtype: str 68 """ 69 return self._access_code 70 71 @access_code.setter 72 def access_code(self, access_code): 73 """Sets the access_code of this Credential. 74 75 If a value is provided, the recipient must enter the value as the access code to view and sign the envelope. Maximum Length: 50 characters and it must conform to the account's access code format setting. If blank, but the signer `accessCode` property is set in the envelope, then that value is used. If blank and the signer `accessCode` property is not set, then the access code is not required. # noqa: E501 76 77 :param access_code: The access_code of this Credential. # noqa: E501 78 :type: str 79 """ 80 81 self._access_code = access_code 82 83 @property 84 def type(self): 85 """Gets the type of this Credential. # noqa: E501 86 87 # noqa: E501 88 89 :return: The type of this Credential. # noqa: E501 90 :rtype: str 91 """ 92 return self._type 93 94 @type.setter 95 def type(self, type): 96 """Sets the type of this Credential. 97 98 # noqa: E501 99 100 :param type: The type of this Credential. # noqa: E501 101 :type: str 102 """ 103 104 self._type = type 105 106 @property 107 def value(self): 108 """Gets the value of this Credential. # noqa: E501 109 110 Specifies the value of the tab. # noqa: E501 111 112 :return: The value of this Credential. # noqa: E501 113 :rtype: str 114 """ 115 return self._value 116 117 @value.setter 118 def value(self, value): 119 """Sets the value of this Credential. 120 121 Specifies the value of the tab. # noqa: E501 122 123 :param value: The value of this Credential. # noqa: E501 124 :type: str 125 """ 126 127 self._value = value 128 129 def to_dict(self): 130 """Returns the model properties as a dict""" 131 result = {} 132 133 for attr, _ in six.iteritems(self.swagger_types): 134 value = getattr(self, attr) 135 if isinstance(value, list): 136 result[attr] = list(map( 137 lambda x: x.to_dict() if hasattr(x, "to_dict") else x, 138 value 139 )) 140 elif hasattr(value, "to_dict"): 141 result[attr] = value.to_dict() 142 elif isinstance(value, dict): 143 result[attr] = dict(map( 144 lambda item: (item[0], item[1].to_dict()) 145 if hasattr(item[1], "to_dict") else item, 146 value.items() 147 )) 148 else: 149 result[attr] = value 150 if issubclass(Credential, dict): 151 for key, value in self.items(): 152 result[key] = value 153 154 return result 155 156 def to_str(self): 157 """Returns the string representation of the model""" 158 return pprint.pformat(self.to_dict()) 159 160 def __repr__(self): 161 """For `print` and `pprint`""" 162 return self.to_str() 163 164 def __eq__(self, other): 165 """Returns true if both objects are equal""" 166 if not isinstance(other, Credential): 167 return False 168 169 return self.__dict__ == other.__dict__ 170 171 def __ne__(self, other): 172 """Returns true if both objects are not equal""" 173 return not self == other
21class Credential(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 'access_code': 'str', 36 'type': 'str', 37 'value': 'str' 38 } 39 40 attribute_map = { 41 'access_code': 'accessCode', 42 'type': 'type', 43 'value': 'value' 44 } 45 46 def __init__(self, access_code=None, type=None, value=None): # noqa: E501 47 """Credential - a model defined in Swagger""" # noqa: E501 48 49 self._access_code = None 50 self._type = None 51 self._value = None 52 self.discriminator = None 53 54 if access_code is not None: 55 self.access_code = access_code 56 if type is not None: 57 self.type = type 58 if value is not None: 59 self.value = value 60 61 @property 62 def access_code(self): 63 """Gets the access_code of this Credential. # noqa: E501 64 65 If a value is provided, the recipient must enter the value as the access code to view and sign the envelope. Maximum Length: 50 characters and it must conform to the account's access code format setting. If blank, but the signer `accessCode` property is set in the envelope, then that value is used. If blank and the signer `accessCode` property is not set, then the access code is not required. # noqa: E501 66 67 :return: The access_code of this Credential. # noqa: E501 68 :rtype: str 69 """ 70 return self._access_code 71 72 @access_code.setter 73 def access_code(self, access_code): 74 """Sets the access_code of this Credential. 75 76 If a value is provided, the recipient must enter the value as the access code to view and sign the envelope. Maximum Length: 50 characters and it must conform to the account's access code format setting. If blank, but the signer `accessCode` property is set in the envelope, then that value is used. If blank and the signer `accessCode` property is not set, then the access code is not required. # noqa: E501 77 78 :param access_code: The access_code of this Credential. # noqa: E501 79 :type: str 80 """ 81 82 self._access_code = access_code 83 84 @property 85 def type(self): 86 """Gets the type of this Credential. # noqa: E501 87 88 # noqa: E501 89 90 :return: The type of this Credential. # noqa: E501 91 :rtype: str 92 """ 93 return self._type 94 95 @type.setter 96 def type(self, type): 97 """Sets the type of this Credential. 98 99 # noqa: E501 100 101 :param type: The type of this Credential. # noqa: E501 102 :type: str 103 """ 104 105 self._type = type 106 107 @property 108 def value(self): 109 """Gets the value of this Credential. # noqa: E501 110 111 Specifies the value of the tab. # noqa: E501 112 113 :return: The value of this Credential. # noqa: E501 114 :rtype: str 115 """ 116 return self._value 117 118 @value.setter 119 def value(self, value): 120 """Sets the value of this Credential. 121 122 Specifies the value of the tab. # noqa: E501 123 124 :param value: The value of this Credential. # noqa: E501 125 :type: str 126 """ 127 128 self._value = value 129 130 def to_dict(self): 131 """Returns the model properties as a dict""" 132 result = {} 133 134 for attr, _ in six.iteritems(self.swagger_types): 135 value = getattr(self, attr) 136 if isinstance(value, list): 137 result[attr] = list(map( 138 lambda x: x.to_dict() if hasattr(x, "to_dict") else x, 139 value 140 )) 141 elif hasattr(value, "to_dict"): 142 result[attr] = value.to_dict() 143 elif isinstance(value, dict): 144 result[attr] = dict(map( 145 lambda item: (item[0], item[1].to_dict()) 146 if hasattr(item[1], "to_dict") else item, 147 value.items() 148 )) 149 else: 150 result[attr] = value 151 if issubclass(Credential, dict): 152 for key, value in self.items(): 153 result[key] = value 154 155 return result 156 157 def to_str(self): 158 """Returns the string representation of the model""" 159 return pprint.pformat(self.to_dict()) 160 161 def __repr__(self): 162 """For `print` and `pprint`""" 163 return self.to_str() 164 165 def __eq__(self, other): 166 """Returns true if both objects are equal""" 167 if not isinstance(other, Credential): 168 return False 169 170 return self.__dict__ == other.__dict__ 171 172 def __ne__(self, other): 173 """Returns true if both objects are not equal""" 174 return not self == other
NOTE: This class is auto generated by the swagger code generator program.
Do not edit the class manually.
46 def __init__(self, access_code=None, type=None, value=None): # noqa: E501 47 """Credential - a model defined in Swagger""" # noqa: E501 48 49 self._access_code = None 50 self._type = None 51 self._value = None 52 self.discriminator = None 53 54 if access_code is not None: 55 self.access_code = access_code 56 if type is not None: 57 self.type = type 58 if value is not None: 59 self.value = value
Credential - a model defined in Swagger
Gets the access_code of this Credential. # noqa: E501
If a value is provided, the recipient must enter the value as the access code to view and sign the envelope. Maximum Length: 50 characters and it must conform to the account's access code format setting. If blank, but the signer accessCode
property is set in the envelope, then that value is used. If blank and the signer accessCode
property is not set, then the access code is not required. # noqa: E501
Returns
The access_code of this Credential. # noqa: E501
Gets the type of this Credential. # noqa: E501
# noqa: E501
Returns
The type of this Credential. # noqa: E501
Gets the value of this Credential. # noqa: E501
Specifies the value of the tab. # noqa: E501
Returns
The value of this Credential. # noqa: E501
130 def to_dict(self): 131 """Returns the model properties as a dict""" 132 result = {} 133 134 for attr, _ in six.iteritems(self.swagger_types): 135 value = getattr(self, attr) 136 if isinstance(value, list): 137 result[attr] = list(map( 138 lambda x: x.to_dict() if hasattr(x, "to_dict") else x, 139 value 140 )) 141 elif hasattr(value, "to_dict"): 142 result[attr] = value.to_dict() 143 elif isinstance(value, dict): 144 result[attr] = dict(map( 145 lambda item: (item[0], item[1].to_dict()) 146 if hasattr(item[1], "to_dict") else item, 147 value.items() 148 )) 149 else: 150 result[attr] = value 151 if issubclass(Credential, dict): 152 for key, value in self.items(): 153 result[key] = value 154 155 return result
Returns the model properties as a dict