docusign_esign.models.recipient_saml_authentication
DocuSign REST API
The DocuSign REST API provides you with a powerful, convenient, and simple Web services API for interacting with DocuSign.
OpenAPI spec version: v2 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. 7 8 OpenAPI spec version: v2 9 Contact: devcenter@docusign.com 10 Generated by: https://github.com/swagger-api/swagger-codegen.git 11""" 12 13 14from pprint import pformat 15from six import iteritems 16import re 17 18 19class RecipientSAMLAuthentication(object): 20 """ 21 NOTE: This class is auto generated by the swagger code generator program. 22 Do not edit the class manually. 23 """ 24 def __init__(self, saml_assertion_attributes=None): 25 """ 26 RecipientSAMLAuthentication - a model defined in Swagger 27 28 :param dict swaggerTypes: The key is attribute name 29 and the value is attribute type. 30 :param dict attributeMap: The key is attribute name 31 and the value is json key in definition. 32 """ 33 self.swagger_types = { 34 'saml_assertion_attributes': 'list[SamlAssertionAttribute]' 35 } 36 37 self.attribute_map = { 38 'saml_assertion_attributes': 'samlAssertionAttributes' 39 } 40 41 self._saml_assertion_attributes = saml_assertion_attributes 42 43 @property 44 def saml_assertion_attributes(self): 45 """ 46 Gets the saml_assertion_attributes of this RecipientSAMLAuthentication. 47 48 49 :return: The saml_assertion_attributes of this RecipientSAMLAuthentication. 50 :rtype: list[SamlAssertionAttribute] 51 """ 52 return self._saml_assertion_attributes 53 54 @saml_assertion_attributes.setter 55 def saml_assertion_attributes(self, saml_assertion_attributes): 56 """ 57 Sets the saml_assertion_attributes of this RecipientSAMLAuthentication. 58 59 60 :param saml_assertion_attributes: The saml_assertion_attributes of this RecipientSAMLAuthentication. 61 :type: list[SamlAssertionAttribute] 62 """ 63 64 self._saml_assertion_attributes = saml_assertion_attributes 65 66 def to_dict(self): 67 """ 68 Returns the model properties as a dict 69 """ 70 result = {} 71 72 for attr, _ in iteritems(self.swagger_types): 73 value = getattr(self, attr) 74 if isinstance(value, list): 75 result[attr] = list(map( 76 lambda x: x.to_dict() if hasattr(x, "to_dict") else x, 77 value 78 )) 79 elif hasattr(value, "to_dict"): 80 result[attr] = value.to_dict() 81 elif isinstance(value, dict): 82 result[attr] = dict(map( 83 lambda item: (item[0], item[1].to_dict()) 84 if hasattr(item[1], "to_dict") else item, 85 value.items() 86 )) 87 else: 88 result[attr] = value 89 90 return result 91 92 def to_str(self): 93 """ 94 Returns the string representation of the model 95 """ 96 return pformat(self.to_dict()) 97 98 def __repr__(self): 99 """ 100 For `print` and `pprint` 101 """ 102 return self.to_str() 103 104 def __eq__(self, other): 105 """ 106 Returns true if both objects are equal 107 """ 108 return self.__dict__ == other.__dict__ 109 110 def __ne__(self, other): 111 """ 112 Returns true if both objects are not equal 113 """ 114 return not self == other
class
RecipientSAMLAuthentication:
20class RecipientSAMLAuthentication(object): 21 """ 22 NOTE: This class is auto generated by the swagger code generator program. 23 Do not edit the class manually. 24 """ 25 def __init__(self, saml_assertion_attributes=None): 26 """ 27 RecipientSAMLAuthentication - a model defined in Swagger 28 29 :param dict swaggerTypes: The key is attribute name 30 and the value is attribute type. 31 :param dict attributeMap: The key is attribute name 32 and the value is json key in definition. 33 """ 34 self.swagger_types = { 35 'saml_assertion_attributes': 'list[SamlAssertionAttribute]' 36 } 37 38 self.attribute_map = { 39 'saml_assertion_attributes': 'samlAssertionAttributes' 40 } 41 42 self._saml_assertion_attributes = saml_assertion_attributes 43 44 @property 45 def saml_assertion_attributes(self): 46 """ 47 Gets the saml_assertion_attributes of this RecipientSAMLAuthentication. 48 49 50 :return: The saml_assertion_attributes of this RecipientSAMLAuthentication. 51 :rtype: list[SamlAssertionAttribute] 52 """ 53 return self._saml_assertion_attributes 54 55 @saml_assertion_attributes.setter 56 def saml_assertion_attributes(self, saml_assertion_attributes): 57 """ 58 Sets the saml_assertion_attributes of this RecipientSAMLAuthentication. 59 60 61 :param saml_assertion_attributes: The saml_assertion_attributes of this RecipientSAMLAuthentication. 62 :type: list[SamlAssertionAttribute] 63 """ 64 65 self._saml_assertion_attributes = saml_assertion_attributes 66 67 def to_dict(self): 68 """ 69 Returns the model properties as a dict 70 """ 71 result = {} 72 73 for attr, _ in iteritems(self.swagger_types): 74 value = getattr(self, attr) 75 if isinstance(value, list): 76 result[attr] = list(map( 77 lambda x: x.to_dict() if hasattr(x, "to_dict") else x, 78 value 79 )) 80 elif hasattr(value, "to_dict"): 81 result[attr] = value.to_dict() 82 elif isinstance(value, dict): 83 result[attr] = dict(map( 84 lambda item: (item[0], item[1].to_dict()) 85 if hasattr(item[1], "to_dict") else item, 86 value.items() 87 )) 88 else: 89 result[attr] = value 90 91 return result 92 93 def to_str(self): 94 """ 95 Returns the string representation of the model 96 """ 97 return pformat(self.to_dict()) 98 99 def __repr__(self): 100 """ 101 For `print` and `pprint` 102 """ 103 return self.to_str() 104 105 def __eq__(self, other): 106 """ 107 Returns true if both objects are equal 108 """ 109 return self.__dict__ == other.__dict__ 110 111 def __ne__(self, other): 112 """ 113 Returns true if both objects are not equal 114 """ 115 return not self == other
NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually.
RecipientSAMLAuthentication(saml_assertion_attributes=None)
25 def __init__(self, saml_assertion_attributes=None): 26 """ 27 RecipientSAMLAuthentication - a model defined in Swagger 28 29 :param dict swaggerTypes: The key is attribute name 30 and the value is attribute type. 31 :param dict attributeMap: The key is attribute name 32 and the value is json key in definition. 33 """ 34 self.swagger_types = { 35 'saml_assertion_attributes': 'list[SamlAssertionAttribute]' 36 } 37 38 self.attribute_map = { 39 'saml_assertion_attributes': 'samlAssertionAttributes' 40 } 41 42 self._saml_assertion_attributes = saml_assertion_attributes
RecipientSAMLAuthentication - a model defined in Swagger
Parameters
- dict swaggerTypes: The key is attribute name and the value is attribute type.
- dict attributeMap: The key is attribute name and the value is json key in definition.
saml_assertion_attributes
Gets the saml_assertion_attributes of this RecipientSAMLAuthentication.
Returns
The saml_assertion_attributes of this RecipientSAMLAuthentication.
def
to_dict(self)
67 def to_dict(self): 68 """ 69 Returns the model properties as a dict 70 """ 71 result = {} 72 73 for attr, _ in iteritems(self.swagger_types): 74 value = getattr(self, attr) 75 if isinstance(value, list): 76 result[attr] = list(map( 77 lambda x: x.to_dict() if hasattr(x, "to_dict") else x, 78 value 79 )) 80 elif hasattr(value, "to_dict"): 81 result[attr] = value.to_dict() 82 elif isinstance(value, dict): 83 result[attr] = dict(map( 84 lambda item: (item[0], item[1].to_dict()) 85 if hasattr(item[1], "to_dict") else item, 86 value.items() 87 )) 88 else: 89 result[attr] = value 90 91 return result
Returns the model properties as a dict