docusign_esign.models.seal
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 Seal(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 'configuration': 'dict(str, str)', 35 'seal_identifier': 'str' 36 } 37 38 attribute_map = { 39 'configuration': 'configuration', 40 'seal_identifier': 'sealIdentifier' 41 } 42 43 def __init__(self, configuration=None, seal_identifier=None): # noqa: E501 44 """Seal - a model defined in Swagger""" # noqa: E501 45 46 self._configuration = None 47 self._seal_identifier = None 48 self.discriminator = None 49 50 if configuration is not None: 51 self.configuration = configuration 52 if seal_identifier is not None: 53 self.seal_identifier = seal_identifier 54 55 @property 56 def configuration(self): 57 """Gets the configuration of this Seal. # noqa: E501 58 59 # noqa: E501 60 61 :return: The configuration of this Seal. # noqa: E501 62 :rtype: dict(str, str) 63 """ 64 return self._configuration 65 66 @configuration.setter 67 def configuration(self, configuration): 68 """Sets the configuration of this Seal. 69 70 # noqa: E501 71 72 :param configuration: The configuration of this Seal. # noqa: E501 73 :type: dict(str, str) 74 """ 75 76 self._configuration = configuration 77 78 @property 79 def seal_identifier(self): 80 """Gets the seal_identifier of this Seal. # noqa: E501 81 82 # noqa: E501 83 84 :return: The seal_identifier of this Seal. # noqa: E501 85 :rtype: str 86 """ 87 return self._seal_identifier 88 89 @seal_identifier.setter 90 def seal_identifier(self, seal_identifier): 91 """Sets the seal_identifier of this Seal. 92 93 # noqa: E501 94 95 :param seal_identifier: The seal_identifier of this Seal. # noqa: E501 96 :type: str 97 """ 98 99 self._seal_identifier = seal_identifier 100 101 def to_dict(self): 102 """Returns the model properties as a dict""" 103 result = {} 104 105 for attr, _ in six.iteritems(self.swagger_types): 106 value = getattr(self, attr) 107 if isinstance(value, list): 108 result[attr] = list(map( 109 lambda x: x.to_dict() if hasattr(x, "to_dict") else x, 110 value 111 )) 112 elif hasattr(value, "to_dict"): 113 result[attr] = value.to_dict() 114 elif isinstance(value, dict): 115 result[attr] = dict(map( 116 lambda item: (item[0], item[1].to_dict()) 117 if hasattr(item[1], "to_dict") else item, 118 value.items() 119 )) 120 else: 121 result[attr] = value 122 if issubclass(Seal, dict): 123 for key, value in self.items(): 124 result[key] = value 125 126 return result 127 128 def to_str(self): 129 """Returns the string representation of the model""" 130 return pprint.pformat(self.to_dict()) 131 132 def __repr__(self): 133 """For `print` and `pprint`""" 134 return self.to_str() 135 136 def __eq__(self, other): 137 """Returns true if both objects are equal""" 138 if not isinstance(other, Seal): 139 return False 140 141 return self.__dict__ == other.__dict__ 142 143 def __ne__(self, other): 144 """Returns true if both objects are not equal""" 145 return not self == other
class
Seal:
21class Seal(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 'configuration': 'dict(str, str)', 36 'seal_identifier': 'str' 37 } 38 39 attribute_map = { 40 'configuration': 'configuration', 41 'seal_identifier': 'sealIdentifier' 42 } 43 44 def __init__(self, configuration=None, seal_identifier=None): # noqa: E501 45 """Seal - a model defined in Swagger""" # noqa: E501 46 47 self._configuration = None 48 self._seal_identifier = None 49 self.discriminator = None 50 51 if configuration is not None: 52 self.configuration = configuration 53 if seal_identifier is not None: 54 self.seal_identifier = seal_identifier 55 56 @property 57 def configuration(self): 58 """Gets the configuration of this Seal. # noqa: E501 59 60 # noqa: E501 61 62 :return: The configuration of this Seal. # noqa: E501 63 :rtype: dict(str, str) 64 """ 65 return self._configuration 66 67 @configuration.setter 68 def configuration(self, configuration): 69 """Sets the configuration of this Seal. 70 71 # noqa: E501 72 73 :param configuration: The configuration of this Seal. # noqa: E501 74 :type: dict(str, str) 75 """ 76 77 self._configuration = configuration 78 79 @property 80 def seal_identifier(self): 81 """Gets the seal_identifier of this Seal. # noqa: E501 82 83 # noqa: E501 84 85 :return: The seal_identifier of this Seal. # noqa: E501 86 :rtype: str 87 """ 88 return self._seal_identifier 89 90 @seal_identifier.setter 91 def seal_identifier(self, seal_identifier): 92 """Sets the seal_identifier of this Seal. 93 94 # noqa: E501 95 96 :param seal_identifier: The seal_identifier of this Seal. # noqa: E501 97 :type: str 98 """ 99 100 self._seal_identifier = seal_identifier 101 102 def to_dict(self): 103 """Returns the model properties as a dict""" 104 result = {} 105 106 for attr, _ in six.iteritems(self.swagger_types): 107 value = getattr(self, attr) 108 if isinstance(value, list): 109 result[attr] = list(map( 110 lambda x: x.to_dict() if hasattr(x, "to_dict") else x, 111 value 112 )) 113 elif hasattr(value, "to_dict"): 114 result[attr] = value.to_dict() 115 elif isinstance(value, dict): 116 result[attr] = dict(map( 117 lambda item: (item[0], item[1].to_dict()) 118 if hasattr(item[1], "to_dict") else item, 119 value.items() 120 )) 121 else: 122 result[attr] = value 123 if issubclass(Seal, dict): 124 for key, value in self.items(): 125 result[key] = value 126 127 return result 128 129 def to_str(self): 130 """Returns the string representation of the model""" 131 return pprint.pformat(self.to_dict()) 132 133 def __repr__(self): 134 """For `print` and `pprint`""" 135 return self.to_str() 136 137 def __eq__(self, other): 138 """Returns true if both objects are equal""" 139 if not isinstance(other, Seal): 140 return False 141 142 return self.__dict__ == other.__dict__ 143 144 def __ne__(self, other): 145 """Returns true if both objects are not equal""" 146 return not self == other
NOTE: This class is auto generated by the swagger code generator program.
Do not edit the class manually.
Seal(configuration=None, seal_identifier=None)
44 def __init__(self, configuration=None, seal_identifier=None): # noqa: E501 45 """Seal - a model defined in Swagger""" # noqa: E501 46 47 self._configuration = None 48 self._seal_identifier = None 49 self.discriminator = None 50 51 if configuration is not None: 52 self.configuration = configuration 53 if seal_identifier is not None: 54 self.seal_identifier = seal_identifier
Seal - a model defined in Swagger
configuration
Gets the configuration of this Seal. # noqa: E501
# noqa: E501
Returns
The configuration of this Seal. # noqa: E501
seal_identifier
Gets the seal_identifier of this Seal. # noqa: E501
# noqa: E501
Returns
The seal_identifier of this Seal. # noqa: E501
def
to_dict(self)
102 def to_dict(self): 103 """Returns the model properties as a dict""" 104 result = {} 105 106 for attr, _ in six.iteritems(self.swagger_types): 107 value = getattr(self, attr) 108 if isinstance(value, list): 109 result[attr] = list(map( 110 lambda x: x.to_dict() if hasattr(x, "to_dict") else x, 111 value 112 )) 113 elif hasattr(value, "to_dict"): 114 result[attr] = value.to_dict() 115 elif isinstance(value, dict): 116 result[attr] = dict(map( 117 lambda item: (item[0], item[1].to_dict()) 118 if hasattr(item[1], "to_dict") else item, 119 value.items() 120 )) 121 else: 122 result[attr] = value 123 if issubclass(Seal, dict): 124 for key, value in self.items(): 125 result[key] = value 126 127 return result
Returns the model properties as a dict