docusign_esign.models.external_document_sources
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 ExternalDocumentSources(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 'boxnet_enabled': 'str', 37 'boxnet_metadata': 'SettingsMetadata', 38 'dropbox_enabled': 'str', 39 'dropbox_metadata': 'SettingsMetadata', 40 'google_drive_enabled': 'str', 41 'google_drive_metadata': 'SettingsMetadata', 42 'one_drive_enabled': 'str', 43 'one_drive_metadata': 'SettingsMetadata', 44 'salesforce_enabled': 'str', 45 'salesforce_metadata': 'SettingsMetadata' 46 } 47 48 attribute_map = { 49 'boxnet_enabled': 'boxnetEnabled', 50 'boxnet_metadata': 'boxnetMetadata', 51 'dropbox_enabled': 'dropboxEnabled', 52 'dropbox_metadata': 'dropboxMetadata', 53 'google_drive_enabled': 'googleDriveEnabled', 54 'google_drive_metadata': 'googleDriveMetadata', 55 'one_drive_enabled': 'oneDriveEnabled', 56 'one_drive_metadata': 'oneDriveMetadata', 57 'salesforce_enabled': 'salesforceEnabled', 58 'salesforce_metadata': 'salesforceMetadata' 59 } 60 61 def __init__(self, _configuration=None, **kwargs): # noqa: E501 62 """ExternalDocumentSources - a model defined in Swagger""" # noqa: E501 63 if _configuration is None: 64 _configuration = Configuration() 65 self._configuration = _configuration 66 67 self._boxnet_enabled = None 68 self._boxnet_metadata = None 69 self._dropbox_enabled = None 70 self._dropbox_metadata = None 71 self._google_drive_enabled = None 72 self._google_drive_metadata = None 73 self._one_drive_enabled = None 74 self._one_drive_metadata = None 75 self._salesforce_enabled = None 76 self._salesforce_metadata = None 77 self.discriminator = None 78 79 setattr(self, "_{}".format('boxnet_enabled'), kwargs.get('boxnet_enabled', None)) 80 setattr(self, "_{}".format('boxnet_metadata'), kwargs.get('boxnet_metadata', None)) 81 setattr(self, "_{}".format('dropbox_enabled'), kwargs.get('dropbox_enabled', None)) 82 setattr(self, "_{}".format('dropbox_metadata'), kwargs.get('dropbox_metadata', None)) 83 setattr(self, "_{}".format('google_drive_enabled'), kwargs.get('google_drive_enabled', None)) 84 setattr(self, "_{}".format('google_drive_metadata'), kwargs.get('google_drive_metadata', None)) 85 setattr(self, "_{}".format('one_drive_enabled'), kwargs.get('one_drive_enabled', None)) 86 setattr(self, "_{}".format('one_drive_metadata'), kwargs.get('one_drive_metadata', None)) 87 setattr(self, "_{}".format('salesforce_enabled'), kwargs.get('salesforce_enabled', None)) 88 setattr(self, "_{}".format('salesforce_metadata'), kwargs.get('salesforce_metadata', None)) 89 90 @property 91 def boxnet_enabled(self): 92 """Gets the boxnet_enabled of this ExternalDocumentSources. # noqa: E501 93 94 # noqa: E501 95 96 :return: The boxnet_enabled of this ExternalDocumentSources. # noqa: E501 97 :rtype: str 98 """ 99 return self._boxnet_enabled 100 101 @boxnet_enabled.setter 102 def boxnet_enabled(self, boxnet_enabled): 103 """Sets the boxnet_enabled of this ExternalDocumentSources. 104 105 # noqa: E501 106 107 :param boxnet_enabled: The boxnet_enabled of this ExternalDocumentSources. # noqa: E501 108 :type: str 109 """ 110 111 self._boxnet_enabled = boxnet_enabled 112 113 @property 114 def boxnet_metadata(self): 115 """Gets the boxnet_metadata of this ExternalDocumentSources. # noqa: E501 116 117 Metadata indicating whether the `boxnetEnabled` property is editable. # noqa: E501 118 119 :return: The boxnet_metadata of this ExternalDocumentSources. # noqa: E501 120 :rtype: SettingsMetadata 121 """ 122 return self._boxnet_metadata 123 124 @boxnet_metadata.setter 125 def boxnet_metadata(self, boxnet_metadata): 126 """Sets the boxnet_metadata of this ExternalDocumentSources. 127 128 Metadata indicating whether the `boxnetEnabled` property is editable. # noqa: E501 129 130 :param boxnet_metadata: The boxnet_metadata of this ExternalDocumentSources. # noqa: E501 131 :type: SettingsMetadata 132 """ 133 134 self._boxnet_metadata = boxnet_metadata 135 136 @property 137 def dropbox_enabled(self): 138 """Gets the dropbox_enabled of this ExternalDocumentSources. # noqa: E501 139 140 # noqa: E501 141 142 :return: The dropbox_enabled of this ExternalDocumentSources. # noqa: E501 143 :rtype: str 144 """ 145 return self._dropbox_enabled 146 147 @dropbox_enabled.setter 148 def dropbox_enabled(self, dropbox_enabled): 149 """Sets the dropbox_enabled of this ExternalDocumentSources. 150 151 # noqa: E501 152 153 :param dropbox_enabled: The dropbox_enabled of this ExternalDocumentSources. # noqa: E501 154 :type: str 155 """ 156 157 self._dropbox_enabled = dropbox_enabled 158 159 @property 160 def dropbox_metadata(self): 161 """Gets the dropbox_metadata of this ExternalDocumentSources. # noqa: E501 162 163 Metadata indicating whether the `dropboxEnabled` property is editable. # noqa: E501 164 165 :return: The dropbox_metadata of this ExternalDocumentSources. # noqa: E501 166 :rtype: SettingsMetadata 167 """ 168 return self._dropbox_metadata 169 170 @dropbox_metadata.setter 171 def dropbox_metadata(self, dropbox_metadata): 172 """Sets the dropbox_metadata of this ExternalDocumentSources. 173 174 Metadata indicating whether the `dropboxEnabled` property is editable. # noqa: E501 175 176 :param dropbox_metadata: The dropbox_metadata of this ExternalDocumentSources. # noqa: E501 177 :type: SettingsMetadata 178 """ 179 180 self._dropbox_metadata = dropbox_metadata 181 182 @property 183 def google_drive_enabled(self): 184 """Gets the google_drive_enabled of this ExternalDocumentSources. # noqa: E501 185 186 # noqa: E501 187 188 :return: The google_drive_enabled of this ExternalDocumentSources. # noqa: E501 189 :rtype: str 190 """ 191 return self._google_drive_enabled 192 193 @google_drive_enabled.setter 194 def google_drive_enabled(self, google_drive_enabled): 195 """Sets the google_drive_enabled of this ExternalDocumentSources. 196 197 # noqa: E501 198 199 :param google_drive_enabled: The google_drive_enabled of this ExternalDocumentSources. # noqa: E501 200 :type: str 201 """ 202 203 self._google_drive_enabled = google_drive_enabled 204 205 @property 206 def google_drive_metadata(self): 207 """Gets the google_drive_metadata of this ExternalDocumentSources. # noqa: E501 208 209 Metadata indicating whether the `googleDriveEnabled` property is editable. # noqa: E501 210 211 :return: The google_drive_metadata of this ExternalDocumentSources. # noqa: E501 212 :rtype: SettingsMetadata 213 """ 214 return self._google_drive_metadata 215 216 @google_drive_metadata.setter 217 def google_drive_metadata(self, google_drive_metadata): 218 """Sets the google_drive_metadata of this ExternalDocumentSources. 219 220 Metadata indicating whether the `googleDriveEnabled` property is editable. # noqa: E501 221 222 :param google_drive_metadata: The google_drive_metadata of this ExternalDocumentSources. # noqa: E501 223 :type: SettingsMetadata 224 """ 225 226 self._google_drive_metadata = google_drive_metadata 227 228 @property 229 def one_drive_enabled(self): 230 """Gets the one_drive_enabled of this ExternalDocumentSources. # noqa: E501 231 232 # noqa: E501 233 234 :return: The one_drive_enabled of this ExternalDocumentSources. # noqa: E501 235 :rtype: str 236 """ 237 return self._one_drive_enabled 238 239 @one_drive_enabled.setter 240 def one_drive_enabled(self, one_drive_enabled): 241 """Sets the one_drive_enabled of this ExternalDocumentSources. 242 243 # noqa: E501 244 245 :param one_drive_enabled: The one_drive_enabled of this ExternalDocumentSources. # noqa: E501 246 :type: str 247 """ 248 249 self._one_drive_enabled = one_drive_enabled 250 251 @property 252 def one_drive_metadata(self): 253 """Gets the one_drive_metadata of this ExternalDocumentSources. # noqa: E501 254 255 Metadata indicating whether the `oneDriveEnabled` property is editable. # noqa: E501 256 257 :return: The one_drive_metadata of this ExternalDocumentSources. # noqa: E501 258 :rtype: SettingsMetadata 259 """ 260 return self._one_drive_metadata 261 262 @one_drive_metadata.setter 263 def one_drive_metadata(self, one_drive_metadata): 264 """Sets the one_drive_metadata of this ExternalDocumentSources. 265 266 Metadata indicating whether the `oneDriveEnabled` property is editable. # noqa: E501 267 268 :param one_drive_metadata: The one_drive_metadata of this ExternalDocumentSources. # noqa: E501 269 :type: SettingsMetadata 270 """ 271 272 self._one_drive_metadata = one_drive_metadata 273 274 @property 275 def salesforce_enabled(self): 276 """Gets the salesforce_enabled of this ExternalDocumentSources. # noqa: E501 277 278 # noqa: E501 279 280 :return: The salesforce_enabled of this ExternalDocumentSources. # noqa: E501 281 :rtype: str 282 """ 283 return self._salesforce_enabled 284 285 @salesforce_enabled.setter 286 def salesforce_enabled(self, salesforce_enabled): 287 """Sets the salesforce_enabled of this ExternalDocumentSources. 288 289 # noqa: E501 290 291 :param salesforce_enabled: The salesforce_enabled of this ExternalDocumentSources. # noqa: E501 292 :type: str 293 """ 294 295 self._salesforce_enabled = salesforce_enabled 296 297 @property 298 def salesforce_metadata(self): 299 """Gets the salesforce_metadata of this ExternalDocumentSources. # noqa: E501 300 301 Metadata indicating whether the `salesforceEnabled` property is editable. # noqa: E501 302 303 :return: The salesforce_metadata of this ExternalDocumentSources. # noqa: E501 304 :rtype: SettingsMetadata 305 """ 306 return self._salesforce_metadata 307 308 @salesforce_metadata.setter 309 def salesforce_metadata(self, salesforce_metadata): 310 """Sets the salesforce_metadata of this ExternalDocumentSources. 311 312 Metadata indicating whether the `salesforceEnabled` property is editable. # noqa: E501 313 314 :param salesforce_metadata: The salesforce_metadata of this ExternalDocumentSources. # noqa: E501 315 :type: SettingsMetadata 316 """ 317 318 self._salesforce_metadata = salesforce_metadata 319 320 def to_dict(self): 321 """Returns the model properties as a dict""" 322 result = {} 323 324 for attr, _ in six.iteritems(self.swagger_types): 325 value = getattr(self, attr) 326 if isinstance(value, list): 327 result[attr] = list(map( 328 lambda x: x.to_dict() if hasattr(x, "to_dict") else x, 329 value 330 )) 331 elif hasattr(value, "to_dict"): 332 result[attr] = value.to_dict() 333 elif isinstance(value, dict): 334 result[attr] = dict(map( 335 lambda item: (item[0], item[1].to_dict()) 336 if hasattr(item[1], "to_dict") else item, 337 value.items() 338 )) 339 else: 340 result[attr] = value 341 if issubclass(ExternalDocumentSources, dict): 342 for key, value in self.items(): 343 result[key] = value 344 345 return result 346 347 def to_str(self): 348 """Returns the string representation of the model""" 349 return pprint.pformat(self.to_dict()) 350 351 def __repr__(self): 352 """For `print` and `pprint`""" 353 return self.to_str() 354 355 def __eq__(self, other): 356 """Returns true if both objects are equal""" 357 if not isinstance(other, ExternalDocumentSources): 358 return False 359 360 return self.to_dict() == other.to_dict() 361 362 def __ne__(self, other): 363 """Returns true if both objects are not equal""" 364 if not isinstance(other, ExternalDocumentSources): 365 return True 366 367 return self.to_dict() != other.to_dict()
23class ExternalDocumentSources(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 'boxnet_enabled': 'str', 38 'boxnet_metadata': 'SettingsMetadata', 39 'dropbox_enabled': 'str', 40 'dropbox_metadata': 'SettingsMetadata', 41 'google_drive_enabled': 'str', 42 'google_drive_metadata': 'SettingsMetadata', 43 'one_drive_enabled': 'str', 44 'one_drive_metadata': 'SettingsMetadata', 45 'salesforce_enabled': 'str', 46 'salesforce_metadata': 'SettingsMetadata' 47 } 48 49 attribute_map = { 50 'boxnet_enabled': 'boxnetEnabled', 51 'boxnet_metadata': 'boxnetMetadata', 52 'dropbox_enabled': 'dropboxEnabled', 53 'dropbox_metadata': 'dropboxMetadata', 54 'google_drive_enabled': 'googleDriveEnabled', 55 'google_drive_metadata': 'googleDriveMetadata', 56 'one_drive_enabled': 'oneDriveEnabled', 57 'one_drive_metadata': 'oneDriveMetadata', 58 'salesforce_enabled': 'salesforceEnabled', 59 'salesforce_metadata': 'salesforceMetadata' 60 } 61 62 def __init__(self, _configuration=None, **kwargs): # noqa: E501 63 """ExternalDocumentSources - a model defined in Swagger""" # noqa: E501 64 if _configuration is None: 65 _configuration = Configuration() 66 self._configuration = _configuration 67 68 self._boxnet_enabled = None 69 self._boxnet_metadata = None 70 self._dropbox_enabled = None 71 self._dropbox_metadata = None 72 self._google_drive_enabled = None 73 self._google_drive_metadata = None 74 self._one_drive_enabled = None 75 self._one_drive_metadata = None 76 self._salesforce_enabled = None 77 self._salesforce_metadata = None 78 self.discriminator = None 79 80 setattr(self, "_{}".format('boxnet_enabled'), kwargs.get('boxnet_enabled', None)) 81 setattr(self, "_{}".format('boxnet_metadata'), kwargs.get('boxnet_metadata', None)) 82 setattr(self, "_{}".format('dropbox_enabled'), kwargs.get('dropbox_enabled', None)) 83 setattr(self, "_{}".format('dropbox_metadata'), kwargs.get('dropbox_metadata', None)) 84 setattr(self, "_{}".format('google_drive_enabled'), kwargs.get('google_drive_enabled', None)) 85 setattr(self, "_{}".format('google_drive_metadata'), kwargs.get('google_drive_metadata', None)) 86 setattr(self, "_{}".format('one_drive_enabled'), kwargs.get('one_drive_enabled', None)) 87 setattr(self, "_{}".format('one_drive_metadata'), kwargs.get('one_drive_metadata', None)) 88 setattr(self, "_{}".format('salesforce_enabled'), kwargs.get('salesforce_enabled', None)) 89 setattr(self, "_{}".format('salesforce_metadata'), kwargs.get('salesforce_metadata', None)) 90 91 @property 92 def boxnet_enabled(self): 93 """Gets the boxnet_enabled of this ExternalDocumentSources. # noqa: E501 94 95 # noqa: E501 96 97 :return: The boxnet_enabled of this ExternalDocumentSources. # noqa: E501 98 :rtype: str 99 """ 100 return self._boxnet_enabled 101 102 @boxnet_enabled.setter 103 def boxnet_enabled(self, boxnet_enabled): 104 """Sets the boxnet_enabled of this ExternalDocumentSources. 105 106 # noqa: E501 107 108 :param boxnet_enabled: The boxnet_enabled of this ExternalDocumentSources. # noqa: E501 109 :type: str 110 """ 111 112 self._boxnet_enabled = boxnet_enabled 113 114 @property 115 def boxnet_metadata(self): 116 """Gets the boxnet_metadata of this ExternalDocumentSources. # noqa: E501 117 118 Metadata indicating whether the `boxnetEnabled` property is editable. # noqa: E501 119 120 :return: The boxnet_metadata of this ExternalDocumentSources. # noqa: E501 121 :rtype: SettingsMetadata 122 """ 123 return self._boxnet_metadata 124 125 @boxnet_metadata.setter 126 def boxnet_metadata(self, boxnet_metadata): 127 """Sets the boxnet_metadata of this ExternalDocumentSources. 128 129 Metadata indicating whether the `boxnetEnabled` property is editable. # noqa: E501 130 131 :param boxnet_metadata: The boxnet_metadata of this ExternalDocumentSources. # noqa: E501 132 :type: SettingsMetadata 133 """ 134 135 self._boxnet_metadata = boxnet_metadata 136 137 @property 138 def dropbox_enabled(self): 139 """Gets the dropbox_enabled of this ExternalDocumentSources. # noqa: E501 140 141 # noqa: E501 142 143 :return: The dropbox_enabled of this ExternalDocumentSources. # noqa: E501 144 :rtype: str 145 """ 146 return self._dropbox_enabled 147 148 @dropbox_enabled.setter 149 def dropbox_enabled(self, dropbox_enabled): 150 """Sets the dropbox_enabled of this ExternalDocumentSources. 151 152 # noqa: E501 153 154 :param dropbox_enabled: The dropbox_enabled of this ExternalDocumentSources. # noqa: E501 155 :type: str 156 """ 157 158 self._dropbox_enabled = dropbox_enabled 159 160 @property 161 def dropbox_metadata(self): 162 """Gets the dropbox_metadata of this ExternalDocumentSources. # noqa: E501 163 164 Metadata indicating whether the `dropboxEnabled` property is editable. # noqa: E501 165 166 :return: The dropbox_metadata of this ExternalDocumentSources. # noqa: E501 167 :rtype: SettingsMetadata 168 """ 169 return self._dropbox_metadata 170 171 @dropbox_metadata.setter 172 def dropbox_metadata(self, dropbox_metadata): 173 """Sets the dropbox_metadata of this ExternalDocumentSources. 174 175 Metadata indicating whether the `dropboxEnabled` property is editable. # noqa: E501 176 177 :param dropbox_metadata: The dropbox_metadata of this ExternalDocumentSources. # noqa: E501 178 :type: SettingsMetadata 179 """ 180 181 self._dropbox_metadata = dropbox_metadata 182 183 @property 184 def google_drive_enabled(self): 185 """Gets the google_drive_enabled of this ExternalDocumentSources. # noqa: E501 186 187 # noqa: E501 188 189 :return: The google_drive_enabled of this ExternalDocumentSources. # noqa: E501 190 :rtype: str 191 """ 192 return self._google_drive_enabled 193 194 @google_drive_enabled.setter 195 def google_drive_enabled(self, google_drive_enabled): 196 """Sets the google_drive_enabled of this ExternalDocumentSources. 197 198 # noqa: E501 199 200 :param google_drive_enabled: The google_drive_enabled of this ExternalDocumentSources. # noqa: E501 201 :type: str 202 """ 203 204 self._google_drive_enabled = google_drive_enabled 205 206 @property 207 def google_drive_metadata(self): 208 """Gets the google_drive_metadata of this ExternalDocumentSources. # noqa: E501 209 210 Metadata indicating whether the `googleDriveEnabled` property is editable. # noqa: E501 211 212 :return: The google_drive_metadata of this ExternalDocumentSources. # noqa: E501 213 :rtype: SettingsMetadata 214 """ 215 return self._google_drive_metadata 216 217 @google_drive_metadata.setter 218 def google_drive_metadata(self, google_drive_metadata): 219 """Sets the google_drive_metadata of this ExternalDocumentSources. 220 221 Metadata indicating whether the `googleDriveEnabled` property is editable. # noqa: E501 222 223 :param google_drive_metadata: The google_drive_metadata of this ExternalDocumentSources. # noqa: E501 224 :type: SettingsMetadata 225 """ 226 227 self._google_drive_metadata = google_drive_metadata 228 229 @property 230 def one_drive_enabled(self): 231 """Gets the one_drive_enabled of this ExternalDocumentSources. # noqa: E501 232 233 # noqa: E501 234 235 :return: The one_drive_enabled of this ExternalDocumentSources. # noqa: E501 236 :rtype: str 237 """ 238 return self._one_drive_enabled 239 240 @one_drive_enabled.setter 241 def one_drive_enabled(self, one_drive_enabled): 242 """Sets the one_drive_enabled of this ExternalDocumentSources. 243 244 # noqa: E501 245 246 :param one_drive_enabled: The one_drive_enabled of this ExternalDocumentSources. # noqa: E501 247 :type: str 248 """ 249 250 self._one_drive_enabled = one_drive_enabled 251 252 @property 253 def one_drive_metadata(self): 254 """Gets the one_drive_metadata of this ExternalDocumentSources. # noqa: E501 255 256 Metadata indicating whether the `oneDriveEnabled` property is editable. # noqa: E501 257 258 :return: The one_drive_metadata of this ExternalDocumentSources. # noqa: E501 259 :rtype: SettingsMetadata 260 """ 261 return self._one_drive_metadata 262 263 @one_drive_metadata.setter 264 def one_drive_metadata(self, one_drive_metadata): 265 """Sets the one_drive_metadata of this ExternalDocumentSources. 266 267 Metadata indicating whether the `oneDriveEnabled` property is editable. # noqa: E501 268 269 :param one_drive_metadata: The one_drive_metadata of this ExternalDocumentSources. # noqa: E501 270 :type: SettingsMetadata 271 """ 272 273 self._one_drive_metadata = one_drive_metadata 274 275 @property 276 def salesforce_enabled(self): 277 """Gets the salesforce_enabled of this ExternalDocumentSources. # noqa: E501 278 279 # noqa: E501 280 281 :return: The salesforce_enabled of this ExternalDocumentSources. # noqa: E501 282 :rtype: str 283 """ 284 return self._salesforce_enabled 285 286 @salesforce_enabled.setter 287 def salesforce_enabled(self, salesforce_enabled): 288 """Sets the salesforce_enabled of this ExternalDocumentSources. 289 290 # noqa: E501 291 292 :param salesforce_enabled: The salesforce_enabled of this ExternalDocumentSources. # noqa: E501 293 :type: str 294 """ 295 296 self._salesforce_enabled = salesforce_enabled 297 298 @property 299 def salesforce_metadata(self): 300 """Gets the salesforce_metadata of this ExternalDocumentSources. # noqa: E501 301 302 Metadata indicating whether the `salesforceEnabled` property is editable. # noqa: E501 303 304 :return: The salesforce_metadata of this ExternalDocumentSources. # noqa: E501 305 :rtype: SettingsMetadata 306 """ 307 return self._salesforce_metadata 308 309 @salesforce_metadata.setter 310 def salesforce_metadata(self, salesforce_metadata): 311 """Sets the salesforce_metadata of this ExternalDocumentSources. 312 313 Metadata indicating whether the `salesforceEnabled` property is editable. # noqa: E501 314 315 :param salesforce_metadata: The salesforce_metadata of this ExternalDocumentSources. # noqa: E501 316 :type: SettingsMetadata 317 """ 318 319 self._salesforce_metadata = salesforce_metadata 320 321 def to_dict(self): 322 """Returns the model properties as a dict""" 323 result = {} 324 325 for attr, _ in six.iteritems(self.swagger_types): 326 value = getattr(self, attr) 327 if isinstance(value, list): 328 result[attr] = list(map( 329 lambda x: x.to_dict() if hasattr(x, "to_dict") else x, 330 value 331 )) 332 elif hasattr(value, "to_dict"): 333 result[attr] = value.to_dict() 334 elif isinstance(value, dict): 335 result[attr] = dict(map( 336 lambda item: (item[0], item[1].to_dict()) 337 if hasattr(item[1], "to_dict") else item, 338 value.items() 339 )) 340 else: 341 result[attr] = value 342 if issubclass(ExternalDocumentSources, dict): 343 for key, value in self.items(): 344 result[key] = value 345 346 return result 347 348 def to_str(self): 349 """Returns the string representation of the model""" 350 return pprint.pformat(self.to_dict()) 351 352 def __repr__(self): 353 """For `print` and `pprint`""" 354 return self.to_str() 355 356 def __eq__(self, other): 357 """Returns true if both objects are equal""" 358 if not isinstance(other, ExternalDocumentSources): 359 return False 360 361 return self.to_dict() == other.to_dict() 362 363 def __ne__(self, other): 364 """Returns true if both objects are not equal""" 365 if not isinstance(other, ExternalDocumentSources): 366 return True 367 368 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.
62 def __init__(self, _configuration=None, **kwargs): # noqa: E501 63 """ExternalDocumentSources - a model defined in Swagger""" # noqa: E501 64 if _configuration is None: 65 _configuration = Configuration() 66 self._configuration = _configuration 67 68 self._boxnet_enabled = None 69 self._boxnet_metadata = None 70 self._dropbox_enabled = None 71 self._dropbox_metadata = None 72 self._google_drive_enabled = None 73 self._google_drive_metadata = None 74 self._one_drive_enabled = None 75 self._one_drive_metadata = None 76 self._salesforce_enabled = None 77 self._salesforce_metadata = None 78 self.discriminator = None 79 80 setattr(self, "_{}".format('boxnet_enabled'), kwargs.get('boxnet_enabled', None)) 81 setattr(self, "_{}".format('boxnet_metadata'), kwargs.get('boxnet_metadata', None)) 82 setattr(self, "_{}".format('dropbox_enabled'), kwargs.get('dropbox_enabled', None)) 83 setattr(self, "_{}".format('dropbox_metadata'), kwargs.get('dropbox_metadata', None)) 84 setattr(self, "_{}".format('google_drive_enabled'), kwargs.get('google_drive_enabled', None)) 85 setattr(self, "_{}".format('google_drive_metadata'), kwargs.get('google_drive_metadata', None)) 86 setattr(self, "_{}".format('one_drive_enabled'), kwargs.get('one_drive_enabled', None)) 87 setattr(self, "_{}".format('one_drive_metadata'), kwargs.get('one_drive_metadata', None)) 88 setattr(self, "_{}".format('salesforce_enabled'), kwargs.get('salesforce_enabled', None)) 89 setattr(self, "_{}".format('salesforce_metadata'), kwargs.get('salesforce_metadata', None))
ExternalDocumentSources - a model defined in Swagger
Gets the boxnet_enabled of this ExternalDocumentSources. # noqa: E501
# noqa: E501
Returns
The boxnet_enabled of this ExternalDocumentSources. # noqa: E501
Gets the boxnet_metadata of this ExternalDocumentSources. # noqa: E501
Metadata indicating whether the boxnetEnabled
property is editable. # noqa: E501
Returns
The boxnet_metadata of this ExternalDocumentSources. # noqa: E501
Gets the dropbox_enabled of this ExternalDocumentSources. # noqa: E501
# noqa: E501
Returns
The dropbox_enabled of this ExternalDocumentSources. # noqa: E501
Gets the dropbox_metadata of this ExternalDocumentSources. # noqa: E501
Metadata indicating whether the dropboxEnabled
property is editable. # noqa: E501
Returns
The dropbox_metadata of this ExternalDocumentSources. # noqa: E501
Gets the google_drive_enabled of this ExternalDocumentSources. # noqa: E501
# noqa: E501
Returns
The google_drive_enabled of this ExternalDocumentSources. # noqa: E501
Gets the google_drive_metadata of this ExternalDocumentSources. # noqa: E501
Metadata indicating whether the googleDriveEnabled
property is editable. # noqa: E501
Returns
The google_drive_metadata of this ExternalDocumentSources. # noqa: E501
Gets the one_drive_enabled of this ExternalDocumentSources. # noqa: E501
# noqa: E501
Returns
The one_drive_enabled of this ExternalDocumentSources. # noqa: E501
Gets the one_drive_metadata of this ExternalDocumentSources. # noqa: E501
Metadata indicating whether the oneDriveEnabled
property is editable. # noqa: E501
Returns
The one_drive_metadata of this ExternalDocumentSources. # noqa: E501
Gets the salesforce_enabled of this ExternalDocumentSources. # noqa: E501
# noqa: E501
Returns
The salesforce_enabled of this ExternalDocumentSources. # noqa: E501
Gets the salesforce_metadata of this ExternalDocumentSources. # noqa: E501
Metadata indicating whether the salesforceEnabled
property is editable. # noqa: E501
Returns
The salesforce_metadata of this ExternalDocumentSources. # noqa: E501
321 def to_dict(self): 322 """Returns the model properties as a dict""" 323 result = {} 324 325 for attr, _ in six.iteritems(self.swagger_types): 326 value = getattr(self, attr) 327 if isinstance(value, list): 328 result[attr] = list(map( 329 lambda x: x.to_dict() if hasattr(x, "to_dict") else x, 330 value 331 )) 332 elif hasattr(value, "to_dict"): 333 result[attr] = value.to_dict() 334 elif isinstance(value, dict): 335 result[attr] = dict(map( 336 lambda item: (item[0], item[1].to_dict()) 337 if hasattr(item[1], "to_dict") else item, 338 value.items() 339 )) 340 else: 341 result[attr] = value 342 if issubclass(ExternalDocumentSources, dict): 343 for key, value in self.items(): 344 result[key] = value 345 346 return result
Returns the model properties as a dict