docusign_esign.models.page
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 Page(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 'dpi': 'str', 37 'error_details': 'ErrorDetails', 38 'height': 'str', 39 'image_bytes': 'str', 40 'mime_type': 'str', 41 'page_id': 'str', 42 'sequence': 'str', 43 'width': 'str' 44 } 45 46 attribute_map = { 47 'dpi': 'dpi', 48 'error_details': 'errorDetails', 49 'height': 'height', 50 'image_bytes': 'imageBytes', 51 'mime_type': 'mimeType', 52 'page_id': 'pageId', 53 'sequence': 'sequence', 54 'width': 'width' 55 } 56 57 def __init__(self, _configuration=None, **kwargs): # noqa: E501 58 """Page - a model defined in Swagger""" # noqa: E501 59 if _configuration is None: 60 _configuration = Configuration() 61 self._configuration = _configuration 62 63 self._dpi = None 64 self._error_details = None 65 self._height = None 66 self._image_bytes = None 67 self._mime_type = None 68 self._page_id = None 69 self._sequence = None 70 self._width = None 71 self.discriminator = None 72 73 setattr(self, "_{}".format('dpi'), kwargs.get('dpi', None)) 74 setattr(self, "_{}".format('error_details'), kwargs.get('error_details', None)) 75 setattr(self, "_{}".format('height'), kwargs.get('height', None)) 76 setattr(self, "_{}".format('image_bytes'), kwargs.get('image_bytes', None)) 77 setattr(self, "_{}".format('mime_type'), kwargs.get('mime_type', None)) 78 setattr(self, "_{}".format('page_id'), kwargs.get('page_id', None)) 79 setattr(self, "_{}".format('sequence'), kwargs.get('sequence', None)) 80 setattr(self, "_{}".format('width'), kwargs.get('width', None)) 81 82 @property 83 def dpi(self): 84 """Gets the dpi of this Page. # noqa: E501 85 86 The number of dots per inch used for the page image. # noqa: E501 87 88 :return: The dpi of this Page. # noqa: E501 89 :rtype: str 90 """ 91 return self._dpi 92 93 @dpi.setter 94 def dpi(self, dpi): 95 """Sets the dpi of this Page. 96 97 The number of dots per inch used for the page image. # noqa: E501 98 99 :param dpi: The dpi of this Page. # noqa: E501 100 :type: str 101 """ 102 103 self._dpi = dpi 104 105 @property 106 def error_details(self): 107 """Gets the error_details of this Page. # noqa: E501 108 109 Array or errors. # noqa: E501 110 111 :return: The error_details of this Page. # noqa: E501 112 :rtype: ErrorDetails 113 """ 114 return self._error_details 115 116 @error_details.setter 117 def error_details(self, error_details): 118 """Sets the error_details of this Page. 119 120 Array or errors. # noqa: E501 121 122 :param error_details: The error_details of this Page. # noqa: E501 123 :type: ErrorDetails 124 """ 125 126 self._error_details = error_details 127 128 @property 129 def height(self): 130 """Gets the height of this Page. # noqa: E501 131 132 Height of the tab in pixels. # noqa: E501 133 134 :return: The height of this Page. # noqa: E501 135 :rtype: str 136 """ 137 return self._height 138 139 @height.setter 140 def height(self, height): 141 """Sets the height of this Page. 142 143 Height of the tab in pixels. # noqa: E501 144 145 :param height: The height of this Page. # noqa: E501 146 :type: str 147 """ 148 149 self._height = height 150 151 @property 152 def image_bytes(self): 153 """Gets the image_bytes of this Page. # noqa: E501 154 155 # noqa: E501 156 157 :return: The image_bytes of this Page. # noqa: E501 158 :rtype: str 159 """ 160 return self._image_bytes 161 162 @image_bytes.setter 163 def image_bytes(self, image_bytes): 164 """Sets the image_bytes of this Page. 165 166 # noqa: E501 167 168 :param image_bytes: The image_bytes of this Page. # noqa: E501 169 :type: str 170 """ 171 172 self._image_bytes = image_bytes 173 174 @property 175 def mime_type(self): 176 """Gets the mime_type of this Page. # noqa: E501 177 178 # noqa: E501 179 180 :return: The mime_type of this Page. # noqa: E501 181 :rtype: str 182 """ 183 return self._mime_type 184 185 @mime_type.setter 186 def mime_type(self, mime_type): 187 """Sets the mime_type of this Page. 188 189 # noqa: E501 190 191 :param mime_type: The mime_type of this Page. # noqa: E501 192 :type: str 193 """ 194 195 self._mime_type = mime_type 196 197 @property 198 def page_id(self): 199 """Gets the page_id of this Page. # noqa: E501 200 201 # noqa: E501 202 203 :return: The page_id of this Page. # noqa: E501 204 :rtype: str 205 """ 206 return self._page_id 207 208 @page_id.setter 209 def page_id(self, page_id): 210 """Sets the page_id of this Page. 211 212 # noqa: E501 213 214 :param page_id: The page_id of this Page. # noqa: E501 215 :type: str 216 """ 217 218 self._page_id = page_id 219 220 @property 221 def sequence(self): 222 """Gets the sequence of this Page. # noqa: E501 223 224 # noqa: E501 225 226 :return: The sequence of this Page. # noqa: E501 227 :rtype: str 228 """ 229 return self._sequence 230 231 @sequence.setter 232 def sequence(self, sequence): 233 """Sets the sequence of this Page. 234 235 # noqa: E501 236 237 :param sequence: The sequence of this Page. # noqa: E501 238 :type: str 239 """ 240 241 self._sequence = sequence 242 243 @property 244 def width(self): 245 """Gets the width of this Page. # noqa: E501 246 247 Width of the tab in pixels. # noqa: E501 248 249 :return: The width of this Page. # noqa: E501 250 :rtype: str 251 """ 252 return self._width 253 254 @width.setter 255 def width(self, width): 256 """Sets the width of this Page. 257 258 Width of the tab in pixels. # noqa: E501 259 260 :param width: The width of this Page. # noqa: E501 261 :type: str 262 """ 263 264 self._width = width 265 266 def to_dict(self): 267 """Returns the model properties as a dict""" 268 result = {} 269 270 for attr, _ in six.iteritems(self.swagger_types): 271 value = getattr(self, attr) 272 if isinstance(value, list): 273 result[attr] = list(map( 274 lambda x: x.to_dict() if hasattr(x, "to_dict") else x, 275 value 276 )) 277 elif hasattr(value, "to_dict"): 278 result[attr] = value.to_dict() 279 elif isinstance(value, dict): 280 result[attr] = dict(map( 281 lambda item: (item[0], item[1].to_dict()) 282 if hasattr(item[1], "to_dict") else item, 283 value.items() 284 )) 285 else: 286 result[attr] = value 287 if issubclass(Page, dict): 288 for key, value in self.items(): 289 result[key] = value 290 291 return result 292 293 def to_str(self): 294 """Returns the string representation of the model""" 295 return pprint.pformat(self.to_dict()) 296 297 def __repr__(self): 298 """For `print` and `pprint`""" 299 return self.to_str() 300 301 def __eq__(self, other): 302 """Returns true if both objects are equal""" 303 if not isinstance(other, Page): 304 return False 305 306 return self.to_dict() == other.to_dict() 307 308 def __ne__(self, other): 309 """Returns true if both objects are not equal""" 310 if not isinstance(other, Page): 311 return True 312 313 return self.to_dict() != other.to_dict()
23class Page(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 'dpi': 'str', 38 'error_details': 'ErrorDetails', 39 'height': 'str', 40 'image_bytes': 'str', 41 'mime_type': 'str', 42 'page_id': 'str', 43 'sequence': 'str', 44 'width': 'str' 45 } 46 47 attribute_map = { 48 'dpi': 'dpi', 49 'error_details': 'errorDetails', 50 'height': 'height', 51 'image_bytes': 'imageBytes', 52 'mime_type': 'mimeType', 53 'page_id': 'pageId', 54 'sequence': 'sequence', 55 'width': 'width' 56 } 57 58 def __init__(self, _configuration=None, **kwargs): # noqa: E501 59 """Page - a model defined in Swagger""" # noqa: E501 60 if _configuration is None: 61 _configuration = Configuration() 62 self._configuration = _configuration 63 64 self._dpi = None 65 self._error_details = None 66 self._height = None 67 self._image_bytes = None 68 self._mime_type = None 69 self._page_id = None 70 self._sequence = None 71 self._width = None 72 self.discriminator = None 73 74 setattr(self, "_{}".format('dpi'), kwargs.get('dpi', None)) 75 setattr(self, "_{}".format('error_details'), kwargs.get('error_details', None)) 76 setattr(self, "_{}".format('height'), kwargs.get('height', None)) 77 setattr(self, "_{}".format('image_bytes'), kwargs.get('image_bytes', None)) 78 setattr(self, "_{}".format('mime_type'), kwargs.get('mime_type', None)) 79 setattr(self, "_{}".format('page_id'), kwargs.get('page_id', None)) 80 setattr(self, "_{}".format('sequence'), kwargs.get('sequence', None)) 81 setattr(self, "_{}".format('width'), kwargs.get('width', None)) 82 83 @property 84 def dpi(self): 85 """Gets the dpi of this Page. # noqa: E501 86 87 The number of dots per inch used for the page image. # noqa: E501 88 89 :return: The dpi of this Page. # noqa: E501 90 :rtype: str 91 """ 92 return self._dpi 93 94 @dpi.setter 95 def dpi(self, dpi): 96 """Sets the dpi of this Page. 97 98 The number of dots per inch used for the page image. # noqa: E501 99 100 :param dpi: The dpi of this Page. # noqa: E501 101 :type: str 102 """ 103 104 self._dpi = dpi 105 106 @property 107 def error_details(self): 108 """Gets the error_details of this Page. # noqa: E501 109 110 Array or errors. # noqa: E501 111 112 :return: The error_details of this Page. # noqa: E501 113 :rtype: ErrorDetails 114 """ 115 return self._error_details 116 117 @error_details.setter 118 def error_details(self, error_details): 119 """Sets the error_details of this Page. 120 121 Array or errors. # noqa: E501 122 123 :param error_details: The error_details of this Page. # noqa: E501 124 :type: ErrorDetails 125 """ 126 127 self._error_details = error_details 128 129 @property 130 def height(self): 131 """Gets the height of this Page. # noqa: E501 132 133 Height of the tab in pixels. # noqa: E501 134 135 :return: The height of this Page. # noqa: E501 136 :rtype: str 137 """ 138 return self._height 139 140 @height.setter 141 def height(self, height): 142 """Sets the height of this Page. 143 144 Height of the tab in pixels. # noqa: E501 145 146 :param height: The height of this Page. # noqa: E501 147 :type: str 148 """ 149 150 self._height = height 151 152 @property 153 def image_bytes(self): 154 """Gets the image_bytes of this Page. # noqa: E501 155 156 # noqa: E501 157 158 :return: The image_bytes of this Page. # noqa: E501 159 :rtype: str 160 """ 161 return self._image_bytes 162 163 @image_bytes.setter 164 def image_bytes(self, image_bytes): 165 """Sets the image_bytes of this Page. 166 167 # noqa: E501 168 169 :param image_bytes: The image_bytes of this Page. # noqa: E501 170 :type: str 171 """ 172 173 self._image_bytes = image_bytes 174 175 @property 176 def mime_type(self): 177 """Gets the mime_type of this Page. # noqa: E501 178 179 # noqa: E501 180 181 :return: The mime_type of this Page. # noqa: E501 182 :rtype: str 183 """ 184 return self._mime_type 185 186 @mime_type.setter 187 def mime_type(self, mime_type): 188 """Sets the mime_type of this Page. 189 190 # noqa: E501 191 192 :param mime_type: The mime_type of this Page. # noqa: E501 193 :type: str 194 """ 195 196 self._mime_type = mime_type 197 198 @property 199 def page_id(self): 200 """Gets the page_id of this Page. # noqa: E501 201 202 # noqa: E501 203 204 :return: The page_id of this Page. # noqa: E501 205 :rtype: str 206 """ 207 return self._page_id 208 209 @page_id.setter 210 def page_id(self, page_id): 211 """Sets the page_id of this Page. 212 213 # noqa: E501 214 215 :param page_id: The page_id of this Page. # noqa: E501 216 :type: str 217 """ 218 219 self._page_id = page_id 220 221 @property 222 def sequence(self): 223 """Gets the sequence of this Page. # noqa: E501 224 225 # noqa: E501 226 227 :return: The sequence of this Page. # noqa: E501 228 :rtype: str 229 """ 230 return self._sequence 231 232 @sequence.setter 233 def sequence(self, sequence): 234 """Sets the sequence of this Page. 235 236 # noqa: E501 237 238 :param sequence: The sequence of this Page. # noqa: E501 239 :type: str 240 """ 241 242 self._sequence = sequence 243 244 @property 245 def width(self): 246 """Gets the width of this Page. # noqa: E501 247 248 Width of the tab in pixels. # noqa: E501 249 250 :return: The width of this Page. # noqa: E501 251 :rtype: str 252 """ 253 return self._width 254 255 @width.setter 256 def width(self, width): 257 """Sets the width of this Page. 258 259 Width of the tab in pixels. # noqa: E501 260 261 :param width: The width of this Page. # noqa: E501 262 :type: str 263 """ 264 265 self._width = width 266 267 def to_dict(self): 268 """Returns the model properties as a dict""" 269 result = {} 270 271 for attr, _ in six.iteritems(self.swagger_types): 272 value = getattr(self, attr) 273 if isinstance(value, list): 274 result[attr] = list(map( 275 lambda x: x.to_dict() if hasattr(x, "to_dict") else x, 276 value 277 )) 278 elif hasattr(value, "to_dict"): 279 result[attr] = value.to_dict() 280 elif isinstance(value, dict): 281 result[attr] = dict(map( 282 lambda item: (item[0], item[1].to_dict()) 283 if hasattr(item[1], "to_dict") else item, 284 value.items() 285 )) 286 else: 287 result[attr] = value 288 if issubclass(Page, dict): 289 for key, value in self.items(): 290 result[key] = value 291 292 return result 293 294 def to_str(self): 295 """Returns the string representation of the model""" 296 return pprint.pformat(self.to_dict()) 297 298 def __repr__(self): 299 """For `print` and `pprint`""" 300 return self.to_str() 301 302 def __eq__(self, other): 303 """Returns true if both objects are equal""" 304 if not isinstance(other, Page): 305 return False 306 307 return self.to_dict() == other.to_dict() 308 309 def __ne__(self, other): 310 """Returns true if both objects are not equal""" 311 if not isinstance(other, Page): 312 return True 313 314 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.
58 def __init__(self, _configuration=None, **kwargs): # noqa: E501 59 """Page - a model defined in Swagger""" # noqa: E501 60 if _configuration is None: 61 _configuration = Configuration() 62 self._configuration = _configuration 63 64 self._dpi = None 65 self._error_details = None 66 self._height = None 67 self._image_bytes = None 68 self._mime_type = None 69 self._page_id = None 70 self._sequence = None 71 self._width = None 72 self.discriminator = None 73 74 setattr(self, "_{}".format('dpi'), kwargs.get('dpi', None)) 75 setattr(self, "_{}".format('error_details'), kwargs.get('error_details', None)) 76 setattr(self, "_{}".format('height'), kwargs.get('height', None)) 77 setattr(self, "_{}".format('image_bytes'), kwargs.get('image_bytes', None)) 78 setattr(self, "_{}".format('mime_type'), kwargs.get('mime_type', None)) 79 setattr(self, "_{}".format('page_id'), kwargs.get('page_id', None)) 80 setattr(self, "_{}".format('sequence'), kwargs.get('sequence', None)) 81 setattr(self, "_{}".format('width'), kwargs.get('width', None))
Page - a model defined in Swagger
Gets the dpi of this Page. # noqa: E501
The number of dots per inch used for the page image. # noqa: E501
Returns
The dpi of this Page. # noqa: E501
Gets the error_details of this Page. # noqa: E501
Array or errors. # noqa: E501
Returns
The error_details of this Page. # noqa: E501
Gets the height of this Page. # noqa: E501
Height of the tab in pixels. # noqa: E501
Returns
The height of this Page. # noqa: E501
Gets the image_bytes of this Page. # noqa: E501
# noqa: E501
Returns
The image_bytes of this Page. # noqa: E501
Gets the mime_type of this Page. # noqa: E501
# noqa: E501
Returns
The mime_type of this Page. # noqa: E501
Gets the page_id of this Page. # noqa: E501
# noqa: E501
Returns
The page_id of this Page. # noqa: E501
Gets the sequence of this Page. # noqa: E501
# noqa: E501
Returns
The sequence of this Page. # noqa: E501
Gets the width of this Page. # noqa: E501
Width of the tab in pixels. # noqa: E501
Returns
The width of this Page. # noqa: E501
267 def to_dict(self): 268 """Returns the model properties as a dict""" 269 result = {} 270 271 for attr, _ in six.iteritems(self.swagger_types): 272 value = getattr(self, attr) 273 if isinstance(value, list): 274 result[attr] = list(map( 275 lambda x: x.to_dict() if hasattr(x, "to_dict") else x, 276 value 277 )) 278 elif hasattr(value, "to_dict"): 279 result[attr] = value.to_dict() 280 elif isinstance(value, dict): 281 result[attr] = dict(map( 282 lambda item: (item[0], item[1].to_dict()) 283 if hasattr(item[1], "to_dict") else item, 284 value.items() 285 )) 286 else: 287 result[attr] = value 288 if issubclass(Page, dict): 289 for key, value in self.items(): 290 result[key] = value 291 292 return result
Returns the model properties as a dict