docusign_esign.models.saml_assertion_attribute

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 SamlAssertionAttribute(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, error_details=None, name=None, original_value=None, value=None):
 25        """
 26        SamlAssertionAttribute - 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            'error_details': 'ErrorDetails',
 35            'name': 'str',
 36            'original_value': 'str',
 37            'value': 'str'
 38        }
 39
 40        self.attribute_map = {
 41            'error_details': 'errorDetails',
 42            'name': 'name',
 43            'original_value': 'originalValue',
 44            'value': 'value'
 45        }
 46
 47        self._error_details = error_details
 48        self._name = name
 49        self._original_value = original_value
 50        self._value = value
 51
 52    @property
 53    def error_details(self):
 54        """
 55        Gets the error_details of this SamlAssertionAttribute.
 56
 57        :return: The error_details of this SamlAssertionAttribute.
 58        :rtype: ErrorDetails
 59        """
 60        return self._error_details
 61
 62    @error_details.setter
 63    def error_details(self, error_details):
 64        """
 65        Sets the error_details of this SamlAssertionAttribute.
 66
 67        :param error_details: The error_details of this SamlAssertionAttribute.
 68        :type: ErrorDetails
 69        """
 70
 71        self._error_details = error_details
 72
 73    @property
 74    def name(self):
 75        """
 76        Gets the name of this SamlAssertionAttribute.
 77        
 78
 79        :return: The name of this SamlAssertionAttribute.
 80        :rtype: str
 81        """
 82        return self._name
 83
 84    @name.setter
 85    def name(self, name):
 86        """
 87        Sets the name of this SamlAssertionAttribute.
 88        
 89
 90        :param name: The name of this SamlAssertionAttribute.
 91        :type: str
 92        """
 93
 94        self._name = name
 95
 96    @property
 97    def original_value(self):
 98        """
 99        Gets the original_value of this SamlAssertionAttribute.
100        The initial value of the tab when it was sent to the recipient. 
101
102        :return: The original_value of this SamlAssertionAttribute.
103        :rtype: str
104        """
105        return self._original_value
106
107    @original_value.setter
108    def original_value(self, original_value):
109        """
110        Sets the original_value of this SamlAssertionAttribute.
111        The initial value of the tab when it was sent to the recipient. 
112
113        :param original_value: The original_value of this SamlAssertionAttribute.
114        :type: str
115        """
116
117        self._original_value = original_value
118
119    @property
120    def value(self):
121        """
122        Gets the value of this SamlAssertionAttribute.
123        The value associated with the named SAML assertion attribute
124
125        :return: The value of this SamlAssertionAttribute.
126        :rtype: str
127        """
128        return self._value
129
130    @value.setter
131    def value(self, value):
132        """
133        Sets the value of this SamlAssertionAttribute.
134        The value associated with the named SAML assertion attribute
135
136        :param value: The value of this SamlAssertionAttribute.
137        :type: str
138        """
139
140        self._value = value
141
142    def to_dict(self):
143        """
144        Returns the model properties as a dict
145        """
146        result = {}
147
148        for attr, _ in iteritems(self.swagger_types):
149            value = getattr(self, attr)
150            if isinstance(value, list):
151                result[attr] = list(map(
152                    lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
153                    value
154                ))
155            elif hasattr(value, "to_dict"):
156                result[attr] = value.to_dict()
157            elif isinstance(value, dict):
158                result[attr] = dict(map(
159                    lambda item: (item[0], item[1].to_dict())
160                    if hasattr(item[1], "to_dict") else item,
161                    value.items()
162                ))
163            else:
164                result[attr] = value
165
166        return result
167
168    def to_str(self):
169        """
170        Returns the string representation of the model
171        """
172        return pformat(self.to_dict())
173
174    def __repr__(self):
175        """
176        For `print` and `pprint`
177        """
178        return self.to_str()
179
180    def __eq__(self, other):
181        """
182        Returns true if both objects are equal
183        """
184        return self.__dict__ == other.__dict__
185
186    def __ne__(self, other):
187        """
188        Returns true if both objects are not equal
189        """
190        return not self == other
class SamlAssertionAttribute:
 20class SamlAssertionAttribute(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, error_details=None, name=None, original_value=None, value=None):
 26        """
 27        SamlAssertionAttribute - 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            'error_details': 'ErrorDetails',
 36            'name': 'str',
 37            'original_value': 'str',
 38            'value': 'str'
 39        }
 40
 41        self.attribute_map = {
 42            'error_details': 'errorDetails',
 43            'name': 'name',
 44            'original_value': 'originalValue',
 45            'value': 'value'
 46        }
 47
 48        self._error_details = error_details
 49        self._name = name
 50        self._original_value = original_value
 51        self._value = value
 52
 53    @property
 54    def error_details(self):
 55        """
 56        Gets the error_details of this SamlAssertionAttribute.
 57
 58        :return: The error_details of this SamlAssertionAttribute.
 59        :rtype: ErrorDetails
 60        """
 61        return self._error_details
 62
 63    @error_details.setter
 64    def error_details(self, error_details):
 65        """
 66        Sets the error_details of this SamlAssertionAttribute.
 67
 68        :param error_details: The error_details of this SamlAssertionAttribute.
 69        :type: ErrorDetails
 70        """
 71
 72        self._error_details = error_details
 73
 74    @property
 75    def name(self):
 76        """
 77        Gets the name of this SamlAssertionAttribute.
 78        
 79
 80        :return: The name of this SamlAssertionAttribute.
 81        :rtype: str
 82        """
 83        return self._name
 84
 85    @name.setter
 86    def name(self, name):
 87        """
 88        Sets the name of this SamlAssertionAttribute.
 89        
 90
 91        :param name: The name of this SamlAssertionAttribute.
 92        :type: str
 93        """
 94
 95        self._name = name
 96
 97    @property
 98    def original_value(self):
 99        """
100        Gets the original_value of this SamlAssertionAttribute.
101        The initial value of the tab when it was sent to the recipient. 
102
103        :return: The original_value of this SamlAssertionAttribute.
104        :rtype: str
105        """
106        return self._original_value
107
108    @original_value.setter
109    def original_value(self, original_value):
110        """
111        Sets the original_value of this SamlAssertionAttribute.
112        The initial value of the tab when it was sent to the recipient. 
113
114        :param original_value: The original_value of this SamlAssertionAttribute.
115        :type: str
116        """
117
118        self._original_value = original_value
119
120    @property
121    def value(self):
122        """
123        Gets the value of this SamlAssertionAttribute.
124        The value associated with the named SAML assertion attribute
125
126        :return: The value of this SamlAssertionAttribute.
127        :rtype: str
128        """
129        return self._value
130
131    @value.setter
132    def value(self, value):
133        """
134        Sets the value of this SamlAssertionAttribute.
135        The value associated with the named SAML assertion attribute
136
137        :param value: The value of this SamlAssertionAttribute.
138        :type: str
139        """
140
141        self._value = value
142
143    def to_dict(self):
144        """
145        Returns the model properties as a dict
146        """
147        result = {}
148
149        for attr, _ in iteritems(self.swagger_types):
150            value = getattr(self, attr)
151            if isinstance(value, list):
152                result[attr] = list(map(
153                    lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
154                    value
155                ))
156            elif hasattr(value, "to_dict"):
157                result[attr] = value.to_dict()
158            elif isinstance(value, dict):
159                result[attr] = dict(map(
160                    lambda item: (item[0], item[1].to_dict())
161                    if hasattr(item[1], "to_dict") else item,
162                    value.items()
163                ))
164            else:
165                result[attr] = value
166
167        return result
168
169    def to_str(self):
170        """
171        Returns the string representation of the model
172        """
173        return pformat(self.to_dict())
174
175    def __repr__(self):
176        """
177        For `print` and `pprint`
178        """
179        return self.to_str()
180
181    def __eq__(self, other):
182        """
183        Returns true if both objects are equal
184        """
185        return self.__dict__ == other.__dict__
186
187    def __ne__(self, other):
188        """
189        Returns true if both objects are not equal
190        """
191        return not self == other

NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually.

SamlAssertionAttribute(error_details=None, name=None, original_value=None, value=None)
25    def __init__(self, error_details=None, name=None, original_value=None, value=None):
26        """
27        SamlAssertionAttribute - 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            'error_details': 'ErrorDetails',
36            'name': 'str',
37            'original_value': 'str',
38            'value': 'str'
39        }
40
41        self.attribute_map = {
42            'error_details': 'errorDetails',
43            'name': 'name',
44            'original_value': 'originalValue',
45            'value': 'value'
46        }
47
48        self._error_details = error_details
49        self._name = name
50        self._original_value = original_value
51        self._value = value

SamlAssertionAttribute - 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.
error_details

Gets the error_details of this SamlAssertionAttribute.

Returns

The error_details of this SamlAssertionAttribute.

name

Gets the name of this SamlAssertionAttribute.

Returns

The name of this SamlAssertionAttribute.

original_value

Gets the original_value of this SamlAssertionAttribute. The initial value of the tab when it was sent to the recipient.

Returns

The original_value of this SamlAssertionAttribute.

value

Gets the value of this SamlAssertionAttribute. The value associated with the named SAML assertion attribute

Returns

The value of this SamlAssertionAttribute.

def to_dict(self)
143    def to_dict(self):
144        """
145        Returns the model properties as a dict
146        """
147        result = {}
148
149        for attr, _ in iteritems(self.swagger_types):
150            value = getattr(self, attr)
151            if isinstance(value, list):
152                result[attr] = list(map(
153                    lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
154                    value
155                ))
156            elif hasattr(value, "to_dict"):
157                result[attr] = value.to_dict()
158            elif isinstance(value, dict):
159                result[attr] = dict(map(
160                    lambda item: (item[0], item[1].to_dict())
161                    if hasattr(item[1], "to_dict") else item,
162                    value.items()
163                ))
164            else:
165                result[attr] = value
166
167        return result

Returns the model properties as a dict

def to_str(self)
169    def to_str(self):
170        """
171        Returns the string representation of the model
172        """
173        return pformat(self.to_dict())

Returns the string representation of the model