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