docusign_esign.models.cloud_storage_provider

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 CloudStorageProvider(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        'authentication_url': 'str',
 37        'error_details': 'ErrorDetails',
 38        'redirect_url': 'str',
 39        'service': 'str',
 40        'service_id': 'str'
 41    }
 42
 43    attribute_map = {
 44        'authentication_url': 'authenticationUrl',
 45        'error_details': 'errorDetails',
 46        'redirect_url': 'redirectUrl',
 47        'service': 'service',
 48        'service_id': 'serviceId'
 49    }
 50
 51    def __init__(self, _configuration=None, **kwargs):  # noqa: E501
 52        """CloudStorageProvider - a model defined in Swagger"""  # noqa: E501
 53        if _configuration is None:
 54            _configuration = Configuration()
 55        self._configuration = _configuration
 56
 57        self._authentication_url = None
 58        self._error_details = None
 59        self._redirect_url = None
 60        self._service = None
 61        self._service_id = None
 62        self.discriminator = None
 63
 64        setattr(self, "_{}".format('authentication_url'), kwargs.get('authentication_url', None))
 65        setattr(self, "_{}".format('error_details'), kwargs.get('error_details', None))
 66        setattr(self, "_{}".format('redirect_url'), kwargs.get('redirect_url', None))
 67        setattr(self, "_{}".format('service'), kwargs.get('service', None))
 68        setattr(self, "_{}".format('service_id'), kwargs.get('service_id', None))
 69
 70    @property
 71    def authentication_url(self):
 72        """Gets the authentication_url of this CloudStorageProvider.  # noqa: E501
 73
 74        The authentication URL used for the cloud storage provider. This information is only included in the response if the user has not passed authentication for the cloud storage provider. If the redirectUrl query string is provided, the returnUrl is appended to the authenticationUrl.   # noqa: E501
 75
 76        :return: The authentication_url of this CloudStorageProvider.  # noqa: E501
 77        :rtype: str
 78        """
 79        return self._authentication_url
 80
 81    @authentication_url.setter
 82    def authentication_url(self, authentication_url):
 83        """Sets the authentication_url of this CloudStorageProvider.
 84
 85        The authentication URL used for the cloud storage provider. This information is only included in the response if the user has not passed authentication for the cloud storage provider. If the redirectUrl query string is provided, the returnUrl is appended to the authenticationUrl.   # noqa: E501
 86
 87        :param authentication_url: The authentication_url of this CloudStorageProvider.  # noqa: E501
 88        :type: str
 89        """
 90
 91        self._authentication_url = authentication_url
 92
 93    @property
 94    def error_details(self):
 95        """Gets the error_details of this CloudStorageProvider.  # noqa: E501
 96
 97        Array or errors.  # noqa: E501
 98
 99        :return: The error_details of this CloudStorageProvider.  # noqa: E501
100        :rtype: ErrorDetails
101        """
102        return self._error_details
103
104    @error_details.setter
105    def error_details(self, error_details):
106        """Sets the error_details of this CloudStorageProvider.
107
108        Array or errors.  # noqa: E501
109
110        :param error_details: The error_details of this CloudStorageProvider.  # noqa: E501
111        :type: ErrorDetails
112        """
113
114        self._error_details = error_details
115
116    @property
117    def redirect_url(self):
118        """Gets the redirect_url of this CloudStorageProvider.  # noqa: E501
119
120        The URL the user is redirected to after the cloud storage provider authenticates the user. Using this will append the redirectUrl to the authenticationUrl.  The redirectUrl is restricted to URLs in the docusign.com or docusign.net domains.  # noqa: E501
121
122        :return: The redirect_url of this CloudStorageProvider.  # noqa: E501
123        :rtype: str
124        """
125        return self._redirect_url
126
127    @redirect_url.setter
128    def redirect_url(self, redirect_url):
129        """Sets the redirect_url of this CloudStorageProvider.
130
131        The URL the user is redirected to after the cloud storage provider authenticates the user. Using this will append the redirectUrl to the authenticationUrl.  The redirectUrl is restricted to URLs in the docusign.com or docusign.net domains.  # noqa: E501
132
133        :param redirect_url: The redirect_url of this CloudStorageProvider.  # noqa: E501
134        :type: str
135        """
136
137        self._redirect_url = redirect_url
138
139    @property
140    def service(self):
141        """Gets the service of this CloudStorageProvider.  # noqa: E501
142
143        The service name for the cloud storage provider.  # noqa: E501
144
145        :return: The service of this CloudStorageProvider.  # noqa: E501
146        :rtype: str
147        """
148        return self._service
149
150    @service.setter
151    def service(self, service):
152        """Sets the service of this CloudStorageProvider.
153
154        The service name for the cloud storage provider.  # noqa: E501
155
156        :param service: The service of this CloudStorageProvider.  # noqa: E501
157        :type: str
158        """
159
160        self._service = service
161
162    @property
163    def service_id(self):
164        """Gets the service_id of this CloudStorageProvider.  # noqa: E501
165
166        The DocuSign generated ID for the cloud storage provider  # noqa: E501
167
168        :return: The service_id of this CloudStorageProvider.  # noqa: E501
169        :rtype: str
170        """
171        return self._service_id
172
173    @service_id.setter
174    def service_id(self, service_id):
175        """Sets the service_id of this CloudStorageProvider.
176
177        The DocuSign generated ID for the cloud storage provider  # noqa: E501
178
179        :param service_id: The service_id of this CloudStorageProvider.  # noqa: E501
180        :type: str
181        """
182
183        self._service_id = service_id
184
185    def to_dict(self):
186        """Returns the model properties as a dict"""
187        result = {}
188
189        for attr, _ in six.iteritems(self.swagger_types):
190            value = getattr(self, attr)
191            if isinstance(value, list):
192                result[attr] = list(map(
193                    lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
194                    value
195                ))
196            elif hasattr(value, "to_dict"):
197                result[attr] = value.to_dict()
198            elif isinstance(value, dict):
199                result[attr] = dict(map(
200                    lambda item: (item[0], item[1].to_dict())
201                    if hasattr(item[1], "to_dict") else item,
202                    value.items()
203                ))
204            else:
205                result[attr] = value
206        if issubclass(CloudStorageProvider, dict):
207            for key, value in self.items():
208                result[key] = value
209
210        return result
211
212    def to_str(self):
213        """Returns the string representation of the model"""
214        return pprint.pformat(self.to_dict())
215
216    def __repr__(self):
217        """For `print` and `pprint`"""
218        return self.to_str()
219
220    def __eq__(self, other):
221        """Returns true if both objects are equal"""
222        if not isinstance(other, CloudStorageProvider):
223            return False
224
225        return self.to_dict() == other.to_dict()
226
227    def __ne__(self, other):
228        """Returns true if both objects are not equal"""
229        if not isinstance(other, CloudStorageProvider):
230            return True
231
232        return self.to_dict() != other.to_dict()
class CloudStorageProvider:
 23class CloudStorageProvider(object):
 24    """NOTE: This class is auto generated by the swagger code generator program.
 25
 26    Do not edit the class manually.
 27    """
 28
 29    """
 30    Attributes:
 31      swagger_types (dict): The key is attribute name
 32                            and the value is attribute type.
 33      attribute_map (dict): The key is attribute name
 34                            and the value is json key in definition.
 35    """
 36    swagger_types = {
 37        'authentication_url': 'str',
 38        'error_details': 'ErrorDetails',
 39        'redirect_url': 'str',
 40        'service': 'str',
 41        'service_id': 'str'
 42    }
 43
 44    attribute_map = {
 45        'authentication_url': 'authenticationUrl',
 46        'error_details': 'errorDetails',
 47        'redirect_url': 'redirectUrl',
 48        'service': 'service',
 49        'service_id': 'serviceId'
 50    }
 51
 52    def __init__(self, _configuration=None, **kwargs):  # noqa: E501
 53        """CloudStorageProvider - a model defined in Swagger"""  # noqa: E501
 54        if _configuration is None:
 55            _configuration = Configuration()
 56        self._configuration = _configuration
 57
 58        self._authentication_url = None
 59        self._error_details = None
 60        self._redirect_url = None
 61        self._service = None
 62        self._service_id = None
 63        self.discriminator = None
 64
 65        setattr(self, "_{}".format('authentication_url'), kwargs.get('authentication_url', None))
 66        setattr(self, "_{}".format('error_details'), kwargs.get('error_details', None))
 67        setattr(self, "_{}".format('redirect_url'), kwargs.get('redirect_url', None))
 68        setattr(self, "_{}".format('service'), kwargs.get('service', None))
 69        setattr(self, "_{}".format('service_id'), kwargs.get('service_id', None))
 70
 71    @property
 72    def authentication_url(self):
 73        """Gets the authentication_url of this CloudStorageProvider.  # noqa: E501
 74
 75        The authentication URL used for the cloud storage provider. This information is only included in the response if the user has not passed authentication for the cloud storage provider. If the redirectUrl query string is provided, the returnUrl is appended to the authenticationUrl.   # noqa: E501
 76
 77        :return: The authentication_url of this CloudStorageProvider.  # noqa: E501
 78        :rtype: str
 79        """
 80        return self._authentication_url
 81
 82    @authentication_url.setter
 83    def authentication_url(self, authentication_url):
 84        """Sets the authentication_url of this CloudStorageProvider.
 85
 86        The authentication URL used for the cloud storage provider. This information is only included in the response if the user has not passed authentication for the cloud storage provider. If the redirectUrl query string is provided, the returnUrl is appended to the authenticationUrl.   # noqa: E501
 87
 88        :param authentication_url: The authentication_url of this CloudStorageProvider.  # noqa: E501
 89        :type: str
 90        """
 91
 92        self._authentication_url = authentication_url
 93
 94    @property
 95    def error_details(self):
 96        """Gets the error_details of this CloudStorageProvider.  # noqa: E501
 97
 98        Array or errors.  # noqa: E501
 99
100        :return: The error_details of this CloudStorageProvider.  # noqa: E501
101        :rtype: ErrorDetails
102        """
103        return self._error_details
104
105    @error_details.setter
106    def error_details(self, error_details):
107        """Sets the error_details of this CloudStorageProvider.
108
109        Array or errors.  # noqa: E501
110
111        :param error_details: The error_details of this CloudStorageProvider.  # noqa: E501
112        :type: ErrorDetails
113        """
114
115        self._error_details = error_details
116
117    @property
118    def redirect_url(self):
119        """Gets the redirect_url of this CloudStorageProvider.  # noqa: E501
120
121        The URL the user is redirected to after the cloud storage provider authenticates the user. Using this will append the redirectUrl to the authenticationUrl.  The redirectUrl is restricted to URLs in the docusign.com or docusign.net domains.  # noqa: E501
122
123        :return: The redirect_url of this CloudStorageProvider.  # noqa: E501
124        :rtype: str
125        """
126        return self._redirect_url
127
128    @redirect_url.setter
129    def redirect_url(self, redirect_url):
130        """Sets the redirect_url of this CloudStorageProvider.
131
132        The URL the user is redirected to after the cloud storage provider authenticates the user. Using this will append the redirectUrl to the authenticationUrl.  The redirectUrl is restricted to URLs in the docusign.com or docusign.net domains.  # noqa: E501
133
134        :param redirect_url: The redirect_url of this CloudStorageProvider.  # noqa: E501
135        :type: str
136        """
137
138        self._redirect_url = redirect_url
139
140    @property
141    def service(self):
142        """Gets the service of this CloudStorageProvider.  # noqa: E501
143
144        The service name for the cloud storage provider.  # noqa: E501
145
146        :return: The service of this CloudStorageProvider.  # noqa: E501
147        :rtype: str
148        """
149        return self._service
150
151    @service.setter
152    def service(self, service):
153        """Sets the service of this CloudStorageProvider.
154
155        The service name for the cloud storage provider.  # noqa: E501
156
157        :param service: The service of this CloudStorageProvider.  # noqa: E501
158        :type: str
159        """
160
161        self._service = service
162
163    @property
164    def service_id(self):
165        """Gets the service_id of this CloudStorageProvider.  # noqa: E501
166
167        The DocuSign generated ID for the cloud storage provider  # noqa: E501
168
169        :return: The service_id of this CloudStorageProvider.  # noqa: E501
170        :rtype: str
171        """
172        return self._service_id
173
174    @service_id.setter
175    def service_id(self, service_id):
176        """Sets the service_id of this CloudStorageProvider.
177
178        The DocuSign generated ID for the cloud storage provider  # noqa: E501
179
180        :param service_id: The service_id of this CloudStorageProvider.  # noqa: E501
181        :type: str
182        """
183
184        self._service_id = service_id
185
186    def to_dict(self):
187        """Returns the model properties as a dict"""
188        result = {}
189
190        for attr, _ in six.iteritems(self.swagger_types):
191            value = getattr(self, attr)
192            if isinstance(value, list):
193                result[attr] = list(map(
194                    lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
195                    value
196                ))
197            elif hasattr(value, "to_dict"):
198                result[attr] = value.to_dict()
199            elif isinstance(value, dict):
200                result[attr] = dict(map(
201                    lambda item: (item[0], item[1].to_dict())
202                    if hasattr(item[1], "to_dict") else item,
203                    value.items()
204                ))
205            else:
206                result[attr] = value
207        if issubclass(CloudStorageProvider, dict):
208            for key, value in self.items():
209                result[key] = value
210
211        return result
212
213    def to_str(self):
214        """Returns the string representation of the model"""
215        return pprint.pformat(self.to_dict())
216
217    def __repr__(self):
218        """For `print` and `pprint`"""
219        return self.to_str()
220
221    def __eq__(self, other):
222        """Returns true if both objects are equal"""
223        if not isinstance(other, CloudStorageProvider):
224            return False
225
226        return self.to_dict() == other.to_dict()
227
228    def __ne__(self, other):
229        """Returns true if both objects are not equal"""
230        if not isinstance(other, CloudStorageProvider):
231            return True
232
233        return self.to_dict() != other.to_dict()

NOTE: This class is auto generated by the swagger code generator program.

Do not edit the class manually.

CloudStorageProvider(_configuration=None, **kwargs)
52    def __init__(self, _configuration=None, **kwargs):  # noqa: E501
53        """CloudStorageProvider - a model defined in Swagger"""  # noqa: E501
54        if _configuration is None:
55            _configuration = Configuration()
56        self._configuration = _configuration
57
58        self._authentication_url = None
59        self._error_details = None
60        self._redirect_url = None
61        self._service = None
62        self._service_id = None
63        self.discriminator = None
64
65        setattr(self, "_{}".format('authentication_url'), kwargs.get('authentication_url', None))
66        setattr(self, "_{}".format('error_details'), kwargs.get('error_details', None))
67        setattr(self, "_{}".format('redirect_url'), kwargs.get('redirect_url', None))
68        setattr(self, "_{}".format('service'), kwargs.get('service', None))
69        setattr(self, "_{}".format('service_id'), kwargs.get('service_id', None))

CloudStorageProvider - a model defined in Swagger

swagger_types = {'authentication_url': 'str', 'error_details': 'ErrorDetails', 'redirect_url': 'str', 'service': 'str', 'service_id': 'str'}
attribute_map = {'authentication_url': 'authenticationUrl', 'error_details': 'errorDetails', 'redirect_url': 'redirectUrl', 'service': 'service', 'service_id': 'serviceId'}
authentication_url

Gets the authentication_url of this CloudStorageProvider. # noqa: E501

The authentication URL used for the cloud storage provider. This information is only included in the response if the user has not passed authentication for the cloud storage provider. If the redirectUrl query string is provided, the returnUrl is appended to the authenticationUrl. # noqa: E501

Returns

The authentication_url of this CloudStorageProvider. # noqa: E501

error_details

Gets the error_details of this CloudStorageProvider. # noqa: E501

Array or errors. # noqa: E501

Returns

The error_details of this CloudStorageProvider. # noqa: E501

redirect_url

Gets the redirect_url of this CloudStorageProvider. # noqa: E501

The URL the user is redirected to after the cloud storage provider authenticates the user. Using this will append the redirectUrl to the authenticationUrl. The redirectUrl is restricted to URLs in the docusign.com or docusign.net domains. # noqa: E501

Returns

The redirect_url of this CloudStorageProvider. # noqa: E501

service

Gets the service of this CloudStorageProvider. # noqa: E501

The service name for the cloud storage provider. # noqa: E501

Returns

The service of this CloudStorageProvider. # noqa: E501

service_id

Gets the service_id of this CloudStorageProvider. # noqa: E501

The DocuSign generated ID for the cloud storage provider # noqa: E501

Returns

The service_id of this CloudStorageProvider. # noqa: E501

def to_dict(self)
186    def to_dict(self):
187        """Returns the model properties as a dict"""
188        result = {}
189
190        for attr, _ in six.iteritems(self.swagger_types):
191            value = getattr(self, attr)
192            if isinstance(value, list):
193                result[attr] = list(map(
194                    lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
195                    value
196                ))
197            elif hasattr(value, "to_dict"):
198                result[attr] = value.to_dict()
199            elif isinstance(value, dict):
200                result[attr] = dict(map(
201                    lambda item: (item[0], item[1].to_dict())
202                    if hasattr(item[1], "to_dict") else item,
203                    value.items()
204                ))
205            else:
206                result[attr] = value
207        if issubclass(CloudStorageProvider, dict):
208            for key, value in self.items():
209                result[key] = value
210
211        return result

Returns the model properties as a dict

def to_str(self)
213    def to_str(self):
214        """Returns the string representation of the model"""
215        return pprint.pformat(self.to_dict())

Returns the string representation of the model