docusign_webforms.models.web_form_properties
Web Forms API version 1.1
The Web Forms API facilitates generating semantic HTML forms around everyday contracts. # noqa: E501
OpenAPI spec version: 1.1.0 Contact: devcenter@docusign.com Generated by: https://github.com/swagger-api/swagger-codegen.git
1# coding: utf-8 2 3""" 4 Web Forms API version 1.1 5 6 The Web Forms API facilitates generating semantic HTML forms around everyday contracts. # noqa: E501 7 8 OpenAPI spec version: 1.1.0 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_webforms.client.configuration import Configuration 20 21 22class WebFormProperties(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 'name': 'str', 37 'is_private_access': 'bool' 38 } 39 40 attribute_map = { 41 'name': 'name', 42 'is_private_access': 'isPrivateAccess' 43 } 44 45 def __init__(self, _configuration=None, **kwargs): # noqa: E501 46 """WebFormProperties - a model defined in Swagger""" # noqa: E501 47 if _configuration is None: 48 _configuration = Configuration() 49 self._configuration = _configuration 50 51 self._name = None 52 self._is_private_access = None 53 self.discriminator = None 54 55 setattr(self, "_{}".format('name'), kwargs.get('name', None)) 56 setattr(self, "_{}".format('is_private_access'), kwargs.get('is_private_access', None)) 57 58 @property 59 def name(self): 60 """Gets the name of this WebFormProperties. # noqa: E501 61 62 63 :return: The name of this WebFormProperties. # noqa: E501 64 :rtype: str 65 """ 66 return self._name 67 68 @name.setter 69 def name(self, name): 70 """Sets the name of this WebFormProperties. 71 72 73 :param name: The name of this WebFormProperties. # noqa: E501 74 :type: str 75 """ 76 77 self._name = name 78 79 @property 80 def is_private_access(self): 81 """Gets the is_private_access of this WebFormProperties. # noqa: E501 82 83 84 :return: The is_private_access of this WebFormProperties. # noqa: E501 85 :rtype: bool 86 """ 87 return self._is_private_access 88 89 @is_private_access.setter 90 def is_private_access(self, is_private_access): 91 """Sets the is_private_access of this WebFormProperties. 92 93 94 :param is_private_access: The is_private_access of this WebFormProperties. # noqa: E501 95 :type: bool 96 """ 97 98 self._is_private_access = is_private_access 99 100 def to_dict(self): 101 """Returns the model properties as a dict""" 102 result = {} 103 104 for attr, _ in six.iteritems(self.swagger_types): 105 value = getattr(self, attr) 106 if isinstance(value, list): 107 result[attr] = list(map( 108 lambda x: x.to_dict() if hasattr(x, "to_dict") else x, 109 value 110 )) 111 elif hasattr(value, "to_dict"): 112 result[attr] = value.to_dict() 113 elif isinstance(value, dict): 114 result[attr] = dict(map( 115 lambda item: (item[0], item[1].to_dict()) 116 if hasattr(item[1], "to_dict") else item, 117 value.items() 118 )) 119 else: 120 result[attr] = value 121 if issubclass(WebFormProperties, dict): 122 for key, value in self.items(): 123 result[key] = value 124 125 return result 126 127 def to_str(self): 128 """Returns the string representation of the model""" 129 return pprint.pformat(self.to_dict()) 130 131 def __repr__(self): 132 """For `print` and `pprint`""" 133 return self.to_str() 134 135 def __eq__(self, other): 136 """Returns true if both objects are equal""" 137 if not isinstance(other, WebFormProperties): 138 return False 139 140 return self.to_dict() == other.to_dict() 141 142 def __ne__(self, other): 143 """Returns true if both objects are not equal""" 144 if not isinstance(other, WebFormProperties): 145 return True 146 147 return self.to_dict() != other.to_dict()
class
WebFormProperties:
23class WebFormProperties(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 'name': 'str', 38 'is_private_access': 'bool' 39 } 40 41 attribute_map = { 42 'name': 'name', 43 'is_private_access': 'isPrivateAccess' 44 } 45 46 def __init__(self, _configuration=None, **kwargs): # noqa: E501 47 """WebFormProperties - a model defined in Swagger""" # noqa: E501 48 if _configuration is None: 49 _configuration = Configuration() 50 self._configuration = _configuration 51 52 self._name = None 53 self._is_private_access = None 54 self.discriminator = None 55 56 setattr(self, "_{}".format('name'), kwargs.get('name', None)) 57 setattr(self, "_{}".format('is_private_access'), kwargs.get('is_private_access', None)) 58 59 @property 60 def name(self): 61 """Gets the name of this WebFormProperties. # noqa: E501 62 63 64 :return: The name of this WebFormProperties. # noqa: E501 65 :rtype: str 66 """ 67 return self._name 68 69 @name.setter 70 def name(self, name): 71 """Sets the name of this WebFormProperties. 72 73 74 :param name: The name of this WebFormProperties. # noqa: E501 75 :type: str 76 """ 77 78 self._name = name 79 80 @property 81 def is_private_access(self): 82 """Gets the is_private_access of this WebFormProperties. # noqa: E501 83 84 85 :return: The is_private_access of this WebFormProperties. # noqa: E501 86 :rtype: bool 87 """ 88 return self._is_private_access 89 90 @is_private_access.setter 91 def is_private_access(self, is_private_access): 92 """Sets the is_private_access of this WebFormProperties. 93 94 95 :param is_private_access: The is_private_access of this WebFormProperties. # noqa: E501 96 :type: bool 97 """ 98 99 self._is_private_access = is_private_access 100 101 def to_dict(self): 102 """Returns the model properties as a dict""" 103 result = {} 104 105 for attr, _ in six.iteritems(self.swagger_types): 106 value = getattr(self, attr) 107 if isinstance(value, list): 108 result[attr] = list(map( 109 lambda x: x.to_dict() if hasattr(x, "to_dict") else x, 110 value 111 )) 112 elif hasattr(value, "to_dict"): 113 result[attr] = value.to_dict() 114 elif isinstance(value, dict): 115 result[attr] = dict(map( 116 lambda item: (item[0], item[1].to_dict()) 117 if hasattr(item[1], "to_dict") else item, 118 value.items() 119 )) 120 else: 121 result[attr] = value 122 if issubclass(WebFormProperties, dict): 123 for key, value in self.items(): 124 result[key] = value 125 126 return result 127 128 def to_str(self): 129 """Returns the string representation of the model""" 130 return pprint.pformat(self.to_dict()) 131 132 def __repr__(self): 133 """For `print` and `pprint`""" 134 return self.to_str() 135 136 def __eq__(self, other): 137 """Returns true if both objects are equal""" 138 if not isinstance(other, WebFormProperties): 139 return False 140 141 return self.to_dict() == other.to_dict() 142 143 def __ne__(self, other): 144 """Returns true if both objects are not equal""" 145 if not isinstance(other, WebFormProperties): 146 return True 147 148 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.
WebFormProperties(_configuration=None, **kwargs)
46 def __init__(self, _configuration=None, **kwargs): # noqa: E501 47 """WebFormProperties - a model defined in Swagger""" # noqa: E501 48 if _configuration is None: 49 _configuration = Configuration() 50 self._configuration = _configuration 51 52 self._name = None 53 self._is_private_access = None 54 self.discriminator = None 55 56 setattr(self, "_{}".format('name'), kwargs.get('name', None)) 57 setattr(self, "_{}".format('is_private_access'), kwargs.get('is_private_access', None))
WebFormProperties - a model defined in Swagger
name
Gets the name of this WebFormProperties. # noqa: E501
Returns
The name of this WebFormProperties. # noqa: E501
is_private_access
Gets the is_private_access of this WebFormProperties. # noqa: E501
Returns
The is_private_access of this WebFormProperties. # noqa: E501
def
to_dict(self)
101 def to_dict(self): 102 """Returns the model properties as a dict""" 103 result = {} 104 105 for attr, _ in six.iteritems(self.swagger_types): 106 value = getattr(self, attr) 107 if isinstance(value, list): 108 result[attr] = list(map( 109 lambda x: x.to_dict() if hasattr(x, "to_dict") else x, 110 value 111 )) 112 elif hasattr(value, "to_dict"): 113 result[attr] = value.to_dict() 114 elif isinstance(value, dict): 115 result[attr] = dict(map( 116 lambda item: (item[0], item[1].to_dict()) 117 if hasattr(item[1], "to_dict") else item, 118 value.items() 119 )) 120 else: 121 result[attr] = value 122 if issubclass(WebFormProperties, dict): 123 for key, value in self.items(): 124 result[key] = value 125 126 return result
Returns the model properties as a dict