docusign_esign.models.template_shared_item
Docusign eSignature REST API
The Docusign eSignature 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 eSignature REST API 5 6 The Docusign eSignature 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 19from docusign_esign.client.configuration import Configuration 20 21 22class TemplateSharedItem(object): 23 """NOTE: This class is auto generated by the swagger code generator program. 24 25 Do not edit the class manually. 26 """ 27 28 """ 29 Attributes: 30 swagger_types (dict): The key is attribute name 31 and the value is attribute type. 32 attribute_map (dict): The key is attribute name 33 and the value is json key in definition. 34 """ 35 swagger_types = { 36 'error_details': 'ErrorDetails', 37 'owner': 'UserInfo', 38 'password': 'str', 39 'shared': 'str', 40 'shared_groups': 'list[MemberGroupSharedItem]', 41 'shared_users': 'list[UserSharedItem]', 42 'template_id': 'str', 43 'template_name': 'str' 44 } 45 46 attribute_map = { 47 'error_details': 'errorDetails', 48 'owner': 'owner', 49 'password': 'password', 50 'shared': 'shared', 51 'shared_groups': 'sharedGroups', 52 'shared_users': 'sharedUsers', 53 'template_id': 'templateId', 54 'template_name': 'templateName' 55 } 56 57 def __init__(self, _configuration=None, **kwargs): # noqa: E501 58 """TemplateSharedItem - a model defined in Swagger""" # noqa: E501 59 if _configuration is None: 60 _configuration = Configuration() 61 self._configuration = _configuration 62 63 self._error_details = None 64 self._owner = None 65 self._password = None 66 self._shared = None 67 self._shared_groups = None 68 self._shared_users = None 69 self._template_id = None 70 self._template_name = None 71 self.discriminator = None 72 73 setattr(self, "_{}".format('error_details'), kwargs.get('error_details', None)) 74 setattr(self, "_{}".format('owner'), kwargs.get('owner', None)) 75 setattr(self, "_{}".format('password'), kwargs.get('password', None)) 76 setattr(self, "_{}".format('shared'), kwargs.get('shared', None)) 77 setattr(self, "_{}".format('shared_groups'), kwargs.get('shared_groups', None)) 78 setattr(self, "_{}".format('shared_users'), kwargs.get('shared_users', None)) 79 setattr(self, "_{}".format('template_id'), kwargs.get('template_id', None)) 80 setattr(self, "_{}".format('template_name'), kwargs.get('template_name', None)) 81 82 @property 83 def error_details(self): 84 """Gets the error_details of this TemplateSharedItem. # noqa: E501 85 86 Array or errors. # noqa: E501 87 88 :return: The error_details of this TemplateSharedItem. # noqa: E501 89 :rtype: ErrorDetails 90 """ 91 return self._error_details 92 93 @error_details.setter 94 def error_details(self, error_details): 95 """Sets the error_details of this TemplateSharedItem. 96 97 Array or errors. # noqa: E501 98 99 :param error_details: The error_details of this TemplateSharedItem. # noqa: E501 100 :type: ErrorDetails 101 """ 102 103 self._error_details = error_details 104 105 @property 106 def owner(self): 107 """Gets the owner of this TemplateSharedItem. # noqa: E501 108 109 Information about the user who owns the template. # noqa: E501 110 111 :return: The owner of this TemplateSharedItem. # noqa: E501 112 :rtype: UserInfo 113 """ 114 return self._owner 115 116 @owner.setter 117 def owner(self, owner): 118 """Sets the owner of this TemplateSharedItem. 119 120 Information about the user who owns the template. # noqa: E501 121 122 :param owner: The owner of this TemplateSharedItem. # noqa: E501 123 :type: UserInfo 124 """ 125 126 self._owner = owner 127 128 @property 129 def password(self): 130 """Gets the password of this TemplateSharedItem. # noqa: E501 131 132 # noqa: E501 133 134 :return: The password of this TemplateSharedItem. # noqa: E501 135 :rtype: str 136 """ 137 return self._password 138 139 @password.setter 140 def password(self, password): 141 """Sets the password of this TemplateSharedItem. 142 143 # noqa: E501 144 145 :param password: The password of this TemplateSharedItem. # noqa: E501 146 :type: str 147 """ 148 149 self._password = password 150 151 @property 152 def shared(self): 153 """Gets the shared of this TemplateSharedItem. # noqa: E501 154 155 When set to **true**, this custom tab is shared. # noqa: E501 156 157 :return: The shared of this TemplateSharedItem. # noqa: E501 158 :rtype: str 159 """ 160 return self._shared 161 162 @shared.setter 163 def shared(self, shared): 164 """Sets the shared of this TemplateSharedItem. 165 166 When set to **true**, this custom tab is shared. # noqa: E501 167 168 :param shared: The shared of this TemplateSharedItem. # noqa: E501 169 :type: str 170 """ 171 172 self._shared = shared 173 174 @property 175 def shared_groups(self): 176 """Gets the shared_groups of this TemplateSharedItem. # noqa: E501 177 178 # noqa: E501 179 180 :return: The shared_groups of this TemplateSharedItem. # noqa: E501 181 :rtype: list[MemberGroupSharedItem] 182 """ 183 return self._shared_groups 184 185 @shared_groups.setter 186 def shared_groups(self, shared_groups): 187 """Sets the shared_groups of this TemplateSharedItem. 188 189 # noqa: E501 190 191 :param shared_groups: The shared_groups of this TemplateSharedItem. # noqa: E501 192 :type: list[MemberGroupSharedItem] 193 """ 194 195 self._shared_groups = shared_groups 196 197 @property 198 def shared_users(self): 199 """Gets the shared_users of this TemplateSharedItem. # noqa: E501 200 201 # noqa: E501 202 203 :return: The shared_users of this TemplateSharedItem. # noqa: E501 204 :rtype: list[UserSharedItem] 205 """ 206 return self._shared_users 207 208 @shared_users.setter 209 def shared_users(self, shared_users): 210 """Sets the shared_users of this TemplateSharedItem. 211 212 # noqa: E501 213 214 :param shared_users: The shared_users of this TemplateSharedItem. # noqa: E501 215 :type: list[UserSharedItem] 216 """ 217 218 self._shared_users = shared_users 219 220 @property 221 def template_id(self): 222 """Gets the template_id of this TemplateSharedItem. # noqa: E501 223 224 The unique identifier of the template. If this is not provided, DocuSign will generate a value. # noqa: E501 225 226 :return: The template_id of this TemplateSharedItem. # noqa: E501 227 :rtype: str 228 """ 229 return self._template_id 230 231 @template_id.setter 232 def template_id(self, template_id): 233 """Sets the template_id of this TemplateSharedItem. 234 235 The unique identifier of the template. If this is not provided, DocuSign will generate a value. # noqa: E501 236 237 :param template_id: The template_id of this TemplateSharedItem. # noqa: E501 238 :type: str 239 """ 240 241 self._template_id = template_id 242 243 @property 244 def template_name(self): 245 """Gets the template_name of this TemplateSharedItem. # noqa: E501 246 247 # noqa: E501 248 249 :return: The template_name of this TemplateSharedItem. # noqa: E501 250 :rtype: str 251 """ 252 return self._template_name 253 254 @template_name.setter 255 def template_name(self, template_name): 256 """Sets the template_name of this TemplateSharedItem. 257 258 # noqa: E501 259 260 :param template_name: The template_name of this TemplateSharedItem. # noqa: E501 261 :type: str 262 """ 263 264 self._template_name = template_name 265 266 def to_dict(self): 267 """Returns the model properties as a dict""" 268 result = {} 269 270 for attr, _ in six.iteritems(self.swagger_types): 271 value = getattr(self, attr) 272 if isinstance(value, list): 273 result[attr] = list(map( 274 lambda x: x.to_dict() if hasattr(x, "to_dict") else x, 275 value 276 )) 277 elif hasattr(value, "to_dict"): 278 result[attr] = value.to_dict() 279 elif isinstance(value, dict): 280 result[attr] = dict(map( 281 lambda item: (item[0], item[1].to_dict()) 282 if hasattr(item[1], "to_dict") else item, 283 value.items() 284 )) 285 else: 286 result[attr] = value 287 if issubclass(TemplateSharedItem, dict): 288 for key, value in self.items(): 289 result[key] = value 290 291 return result 292 293 def to_str(self): 294 """Returns the string representation of the model""" 295 return pprint.pformat(self.to_dict()) 296 297 def __repr__(self): 298 """For `print` and `pprint`""" 299 return self.to_str() 300 301 def __eq__(self, other): 302 """Returns true if both objects are equal""" 303 if not isinstance(other, TemplateSharedItem): 304 return False 305 306 return self.to_dict() == other.to_dict() 307 308 def __ne__(self, other): 309 """Returns true if both objects are not equal""" 310 if not isinstance(other, TemplateSharedItem): 311 return True 312 313 return self.to_dict() != other.to_dict()