docusign_esign.models.document_security_store
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 DocumentSecurityStore(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 'certificates': 'list[str]', 35 'crls': 'list[str]', 36 'ocsps': 'list[str]' 37 } 38 39 attribute_map = { 40 'certificates': 'certificates', 41 'crls': 'crls', 42 'ocsps': 'ocsps' 43 } 44 45 def __init__(self, certificates=None, crls=None, ocsps=None): # noqa: E501 46 """DocumentSecurityStore - a model defined in Swagger""" # noqa: E501 47 48 self._certificates = None 49 self._crls = None 50 self._ocsps = None 51 self.discriminator = None 52 53 if certificates is not None: 54 self.certificates = certificates 55 if crls is not None: 56 self.crls = crls 57 if ocsps is not None: 58 self.ocsps = ocsps 59 60 @property 61 def certificates(self): 62 """Gets the certificates of this DocumentSecurityStore. # noqa: E501 63 64 # noqa: E501 65 66 :return: The certificates of this DocumentSecurityStore. # noqa: E501 67 :rtype: list[str] 68 """ 69 return self._certificates 70 71 @certificates.setter 72 def certificates(self, certificates): 73 """Sets the certificates of this DocumentSecurityStore. 74 75 # noqa: E501 76 77 :param certificates: The certificates of this DocumentSecurityStore. # noqa: E501 78 :type: list[str] 79 """ 80 81 self._certificates = certificates 82 83 @property 84 def crls(self): 85 """Gets the crls of this DocumentSecurityStore. # noqa: E501 86 87 # noqa: E501 88 89 :return: The crls of this DocumentSecurityStore. # noqa: E501 90 :rtype: list[str] 91 """ 92 return self._crls 93 94 @crls.setter 95 def crls(self, crls): 96 """Sets the crls of this DocumentSecurityStore. 97 98 # noqa: E501 99 100 :param crls: The crls of this DocumentSecurityStore. # noqa: E501 101 :type: list[str] 102 """ 103 104 self._crls = crls 105 106 @property 107 def ocsps(self): 108 """Gets the ocsps of this DocumentSecurityStore. # noqa: E501 109 110 # noqa: E501 111 112 :return: The ocsps of this DocumentSecurityStore. # noqa: E501 113 :rtype: list[str] 114 """ 115 return self._ocsps 116 117 @ocsps.setter 118 def ocsps(self, ocsps): 119 """Sets the ocsps of this DocumentSecurityStore. 120 121 # noqa: E501 122 123 :param ocsps: The ocsps of this DocumentSecurityStore. # noqa: E501 124 :type: list[str] 125 """ 126 127 self._ocsps = ocsps 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(DocumentSecurityStore, 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, DocumentSecurityStore): 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 DocumentSecurityStore(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 'certificates': 'list[str]', 36 'crls': 'list[str]', 37 'ocsps': 'list[str]' 38 } 39 40 attribute_map = { 41 'certificates': 'certificates', 42 'crls': 'crls', 43 'ocsps': 'ocsps' 44 } 45 46 def __init__(self, certificates=None, crls=None, ocsps=None): # noqa: E501 47 """DocumentSecurityStore - a model defined in Swagger""" # noqa: E501 48 49 self._certificates = None 50 self._crls = None 51 self._ocsps = None 52 self.discriminator = None 53 54 if certificates is not None: 55 self.certificates = certificates 56 if crls is not None: 57 self.crls = crls 58 if ocsps is not None: 59 self.ocsps = ocsps 60 61 @property 62 def certificates(self): 63 """Gets the certificates of this DocumentSecurityStore. # noqa: E501 64 65 # noqa: E501 66 67 :return: The certificates of this DocumentSecurityStore. # noqa: E501 68 :rtype: list[str] 69 """ 70 return self._certificates 71 72 @certificates.setter 73 def certificates(self, certificates): 74 """Sets the certificates of this DocumentSecurityStore. 75 76 # noqa: E501 77 78 :param certificates: The certificates of this DocumentSecurityStore. # noqa: E501 79 :type: list[str] 80 """ 81 82 self._certificates = certificates 83 84 @property 85 def crls(self): 86 """Gets the crls of this DocumentSecurityStore. # noqa: E501 87 88 # noqa: E501 89 90 :return: The crls of this DocumentSecurityStore. # noqa: E501 91 :rtype: list[str] 92 """ 93 return self._crls 94 95 @crls.setter 96 def crls(self, crls): 97 """Sets the crls of this DocumentSecurityStore. 98 99 # noqa: E501 100 101 :param crls: The crls of this DocumentSecurityStore. # noqa: E501 102 :type: list[str] 103 """ 104 105 self._crls = crls 106 107 @property 108 def ocsps(self): 109 """Gets the ocsps of this DocumentSecurityStore. # noqa: E501 110 111 # noqa: E501 112 113 :return: The ocsps of this DocumentSecurityStore. # noqa: E501 114 :rtype: list[str] 115 """ 116 return self._ocsps 117 118 @ocsps.setter 119 def ocsps(self, ocsps): 120 """Sets the ocsps of this DocumentSecurityStore. 121 122 # noqa: E501 123 124 :param ocsps: The ocsps of this DocumentSecurityStore. # noqa: E501 125 :type: list[str] 126 """ 127 128 self._ocsps = ocsps 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(DocumentSecurityStore, 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, DocumentSecurityStore): 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, certificates=None, crls=None, ocsps=None): # noqa: E501 47 """DocumentSecurityStore - a model defined in Swagger""" # noqa: E501 48 49 self._certificates = None 50 self._crls = None 51 self._ocsps = None 52 self.discriminator = None 53 54 if certificates is not None: 55 self.certificates = certificates 56 if crls is not None: 57 self.crls = crls 58 if ocsps is not None: 59 self.ocsps = ocsps
DocumentSecurityStore - a model defined in Swagger
Gets the certificates of this DocumentSecurityStore. # noqa: E501
# noqa: E501
Returns
The certificates of this DocumentSecurityStore. # noqa: E501
Gets the crls of this DocumentSecurityStore. # noqa: E501
# noqa: E501
Returns
The crls of this DocumentSecurityStore. # noqa: E501
Gets the ocsps of this DocumentSecurityStore. # noqa: E501
# noqa: E501
Returns
The ocsps of this DocumentSecurityStore. # 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(DocumentSecurityStore, dict): 152 for key, value in self.items(): 153 result[key] = value 154 155 return result
Returns the model properties as a dict