docusign_esign.models.brand_link

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
 19from docusign_esign.client.configuration import Configuration
 20
 21
 22class BrandLink(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        'link_text': 'str',
 37        'link_type': 'str',
 38        'show_link': 'str',
 39        'url_or_mail_to': 'str'
 40    }
 41
 42    attribute_map = {
 43        'link_text': 'linkText',
 44        'link_type': 'linkType',
 45        'show_link': 'showLink',
 46        'url_or_mail_to': 'urlOrMailTo'
 47    }
 48
 49    def __init__(self, _configuration=None, **kwargs):  # noqa: E501
 50        """BrandLink - a model defined in Swagger"""  # noqa: E501
 51        if _configuration is None:
 52            _configuration = Configuration()
 53        self._configuration = _configuration
 54
 55        self._link_text = None
 56        self._link_type = None
 57        self._show_link = None
 58        self._url_or_mail_to = None
 59        self.discriminator = None
 60
 61        setattr(self, "_{}".format('link_text'), kwargs.get('link_text', None))
 62        setattr(self, "_{}".format('link_type'), kwargs.get('link_type', None))
 63        setattr(self, "_{}".format('show_link'), kwargs.get('show_link', None))
 64        setattr(self, "_{}".format('url_or_mail_to'), kwargs.get('url_or_mail_to', None))
 65
 66    @property
 67    def link_text(self):
 68        """Gets the link_text of this BrandLink.  # noqa: E501
 69
 70          # noqa: E501
 71
 72        :return: The link_text of this BrandLink.  # noqa: E501
 73        :rtype: str
 74        """
 75        return self._link_text
 76
 77    @link_text.setter
 78    def link_text(self, link_text):
 79        """Sets the link_text of this BrandLink.
 80
 81          # noqa: E501
 82
 83        :param link_text: The link_text of this BrandLink.  # noqa: E501
 84        :type: str
 85        """
 86
 87        self._link_text = link_text
 88
 89    @property
 90    def link_type(self):
 91        """Gets the link_type of this BrandLink.  # noqa: E501
 92
 93          # noqa: E501
 94
 95        :return: The link_type of this BrandLink.  # noqa: E501
 96        :rtype: str
 97        """
 98        return self._link_type
 99
100    @link_type.setter
101    def link_type(self, link_type):
102        """Sets the link_type of this BrandLink.
103
104          # noqa: E501
105
106        :param link_type: The link_type of this BrandLink.  # noqa: E501
107        :type: str
108        """
109
110        self._link_type = link_type
111
112    @property
113    def show_link(self):
114        """Gets the show_link of this BrandLink.  # noqa: E501
115
116          # noqa: E501
117
118        :return: The show_link of this BrandLink.  # noqa: E501
119        :rtype: str
120        """
121        return self._show_link
122
123    @show_link.setter
124    def show_link(self, show_link):
125        """Sets the show_link of this BrandLink.
126
127          # noqa: E501
128
129        :param show_link: The show_link of this BrandLink.  # noqa: E501
130        :type: str
131        """
132
133        self._show_link = show_link
134
135    @property
136    def url_or_mail_to(self):
137        """Gets the url_or_mail_to of this BrandLink.  # noqa: E501
138
139          # noqa: E501
140
141        :return: The url_or_mail_to of this BrandLink.  # noqa: E501
142        :rtype: str
143        """
144        return self._url_or_mail_to
145
146    @url_or_mail_to.setter
147    def url_or_mail_to(self, url_or_mail_to):
148        """Sets the url_or_mail_to of this BrandLink.
149
150          # noqa: E501
151
152        :param url_or_mail_to: The url_or_mail_to of this BrandLink.  # noqa: E501
153        :type: str
154        """
155
156        self._url_or_mail_to = url_or_mail_to
157
158    def to_dict(self):
159        """Returns the model properties as a dict"""
160        result = {}
161
162        for attr, _ in six.iteritems(self.swagger_types):
163            value = getattr(self, attr)
164            if isinstance(value, list):
165                result[attr] = list(map(
166                    lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
167                    value
168                ))
169            elif hasattr(value, "to_dict"):
170                result[attr] = value.to_dict()
171            elif isinstance(value, dict):
172                result[attr] = dict(map(
173                    lambda item: (item[0], item[1].to_dict())
174                    if hasattr(item[1], "to_dict") else item,
175                    value.items()
176                ))
177            else:
178                result[attr] = value
179        if issubclass(BrandLink, dict):
180            for key, value in self.items():
181                result[key] = value
182
183        return result
184
185    def to_str(self):
186        """Returns the string representation of the model"""
187        return pprint.pformat(self.to_dict())
188
189    def __repr__(self):
190        """For `print` and `pprint`"""
191        return self.to_str()
192
193    def __eq__(self, other):
194        """Returns true if both objects are equal"""
195        if not isinstance(other, BrandLink):
196            return False
197
198        return self.to_dict() == other.to_dict()
199
200    def __ne__(self, other):
201        """Returns true if both objects are not equal"""
202        if not isinstance(other, BrandLink):
203            return True
204
205        return self.to_dict() != other.to_dict()