docusign_esign.models.ocr_request
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.1 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.1 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 OcrRequest(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, ocr_language=None, page_selection=None, set_page_orientation=None, show_frames=None, show_text=None, skip_pages_having_existing_extractable_text=None): 25 """ 26 OcrRequest - 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 'ocr_language': 'str', 35 'page_selection': 'str', 36 'set_page_orientation': 'str', 37 'show_frames': 'str', 38 'show_text': 'str', 39 'skip_pages_having_existing_extractable_text': 'str' 40 } 41 42 self.attribute_map = { 43 'ocr_language': 'ocrLanguage', 44 'page_selection': 'pageSelection', 45 'set_page_orientation': 'setPageOrientation', 46 'show_frames': 'showFrames', 47 'show_text': 'showText', 48 'skip_pages_having_existing_extractable_text': 'skipPagesHavingExistingExtractableText' 49 } 50 51 self._ocr_language = ocr_language 52 self._page_selection = page_selection 53 self._set_page_orientation = set_page_orientation 54 self._show_frames = show_frames 55 self._show_text = show_text 56 self._skip_pages_having_existing_extractable_text = skip_pages_having_existing_extractable_text 57 58 @property 59 def ocr_language(self): 60 """ 61 Gets the ocr_language of this OcrRequest. 62 63 64 :return: The ocr_language of this OcrRequest. 65 :rtype: str 66 """ 67 return self._ocr_language 68 69 @ocr_language.setter 70 def ocr_language(self, ocr_language): 71 """ 72 Sets the ocr_language of this OcrRequest. 73 74 75 :param ocr_language: The ocr_language of this OcrRequest. 76 :type: str 77 """ 78 79 self._ocr_language = ocr_language 80 81 @property 82 def page_selection(self): 83 """ 84 Gets the page_selection of this OcrRequest. 85 86 87 :return: The page_selection of this OcrRequest. 88 :rtype: str 89 """ 90 return self._page_selection 91 92 @page_selection.setter 93 def page_selection(self, page_selection): 94 """ 95 Sets the page_selection of this OcrRequest. 96 97 98 :param page_selection: The page_selection of this OcrRequest. 99 :type: str 100 """ 101 102 self._page_selection = page_selection 103 104 @property 105 def set_page_orientation(self): 106 """ 107 Gets the set_page_orientation of this OcrRequest. 108 109 110 :return: The set_page_orientation of this OcrRequest. 111 :rtype: str 112 """ 113 return self._set_page_orientation 114 115 @set_page_orientation.setter 116 def set_page_orientation(self, set_page_orientation): 117 """ 118 Sets the set_page_orientation of this OcrRequest. 119 120 121 :param set_page_orientation: The set_page_orientation of this OcrRequest. 122 :type: str 123 """ 124 125 self._set_page_orientation = set_page_orientation 126 127 @property 128 def show_frames(self): 129 """ 130 Gets the show_frames of this OcrRequest. 131 132 133 :return: The show_frames of this OcrRequest. 134 :rtype: str 135 """ 136 return self._show_frames 137 138 @show_frames.setter 139 def show_frames(self, show_frames): 140 """ 141 Sets the show_frames of this OcrRequest. 142 143 144 :param show_frames: The show_frames of this OcrRequest. 145 :type: str 146 """ 147 148 self._show_frames = show_frames 149 150 @property 151 def show_text(self): 152 """ 153 Gets the show_text of this OcrRequest. 154 155 156 :return: The show_text of this OcrRequest. 157 :rtype: str 158 """ 159 return self._show_text 160 161 @show_text.setter 162 def show_text(self, show_text): 163 """ 164 Sets the show_text of this OcrRequest. 165 166 167 :param show_text: The show_text of this OcrRequest. 168 :type: str 169 """ 170 171 self._show_text = show_text 172 173 @property 174 def skip_pages_having_existing_extractable_text(self): 175 """ 176 Gets the skip_pages_having_existing_extractable_text of this OcrRequest. 177 178 179 :return: The skip_pages_having_existing_extractable_text of this OcrRequest. 180 :rtype: str 181 """ 182 return self._skip_pages_having_existing_extractable_text 183 184 @skip_pages_having_existing_extractable_text.setter 185 def skip_pages_having_existing_extractable_text(self, skip_pages_having_existing_extractable_text): 186 """ 187 Sets the skip_pages_having_existing_extractable_text of this OcrRequest. 188 189 190 :param skip_pages_having_existing_extractable_text: The skip_pages_having_existing_extractable_text of this OcrRequest. 191 :type: str 192 """ 193 194 self._skip_pages_having_existing_extractable_text = skip_pages_having_existing_extractable_text 195 196 def to_dict(self): 197 """ 198 Returns the model properties as a dict 199 """ 200 result = {} 201 202 for attr, _ in iteritems(self.swagger_types): 203 value = getattr(self, attr) 204 if isinstance(value, list): 205 result[attr] = list(map( 206 lambda x: x.to_dict() if hasattr(x, "to_dict") else x, 207 value 208 )) 209 elif hasattr(value, "to_dict"): 210 result[attr] = value.to_dict() 211 elif isinstance(value, dict): 212 result[attr] = dict(map( 213 lambda item: (item[0], item[1].to_dict()) 214 if hasattr(item[1], "to_dict") else item, 215 value.items() 216 )) 217 else: 218 result[attr] = value 219 220 return result 221 222 def to_str(self): 223 """ 224 Returns the string representation of the model 225 """ 226 return pformat(self.to_dict()) 227 228 def __repr__(self): 229 """ 230 For `print` and `pprint` 231 """ 232 return self.to_str() 233 234 def __eq__(self, other): 235 """ 236 Returns true if both objects are equal 237 """ 238 return self.__dict__ == other.__dict__ 239 240 def __ne__(self, other): 241 """ 242 Returns true if both objects are not equal 243 """ 244 return not self == other
20class OcrRequest(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, ocr_language=None, page_selection=None, set_page_orientation=None, show_frames=None, show_text=None, skip_pages_having_existing_extractable_text=None): 26 """ 27 OcrRequest - 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 'ocr_language': 'str', 36 'page_selection': 'str', 37 'set_page_orientation': 'str', 38 'show_frames': 'str', 39 'show_text': 'str', 40 'skip_pages_having_existing_extractable_text': 'str' 41 } 42 43 self.attribute_map = { 44 'ocr_language': 'ocrLanguage', 45 'page_selection': 'pageSelection', 46 'set_page_orientation': 'setPageOrientation', 47 'show_frames': 'showFrames', 48 'show_text': 'showText', 49 'skip_pages_having_existing_extractable_text': 'skipPagesHavingExistingExtractableText' 50 } 51 52 self._ocr_language = ocr_language 53 self._page_selection = page_selection 54 self._set_page_orientation = set_page_orientation 55 self._show_frames = show_frames 56 self._show_text = show_text 57 self._skip_pages_having_existing_extractable_text = skip_pages_having_existing_extractable_text 58 59 @property 60 def ocr_language(self): 61 """ 62 Gets the ocr_language of this OcrRequest. 63 64 65 :return: The ocr_language of this OcrRequest. 66 :rtype: str 67 """ 68 return self._ocr_language 69 70 @ocr_language.setter 71 def ocr_language(self, ocr_language): 72 """ 73 Sets the ocr_language of this OcrRequest. 74 75 76 :param ocr_language: The ocr_language of this OcrRequest. 77 :type: str 78 """ 79 80 self._ocr_language = ocr_language 81 82 @property 83 def page_selection(self): 84 """ 85 Gets the page_selection of this OcrRequest. 86 87 88 :return: The page_selection of this OcrRequest. 89 :rtype: str 90 """ 91 return self._page_selection 92 93 @page_selection.setter 94 def page_selection(self, page_selection): 95 """ 96 Sets the page_selection of this OcrRequest. 97 98 99 :param page_selection: The page_selection of this OcrRequest. 100 :type: str 101 """ 102 103 self._page_selection = page_selection 104 105 @property 106 def set_page_orientation(self): 107 """ 108 Gets the set_page_orientation of this OcrRequest. 109 110 111 :return: The set_page_orientation of this OcrRequest. 112 :rtype: str 113 """ 114 return self._set_page_orientation 115 116 @set_page_orientation.setter 117 def set_page_orientation(self, set_page_orientation): 118 """ 119 Sets the set_page_orientation of this OcrRequest. 120 121 122 :param set_page_orientation: The set_page_orientation of this OcrRequest. 123 :type: str 124 """ 125 126 self._set_page_orientation = set_page_orientation 127 128 @property 129 def show_frames(self): 130 """ 131 Gets the show_frames of this OcrRequest. 132 133 134 :return: The show_frames of this OcrRequest. 135 :rtype: str 136 """ 137 return self._show_frames 138 139 @show_frames.setter 140 def show_frames(self, show_frames): 141 """ 142 Sets the show_frames of this OcrRequest. 143 144 145 :param show_frames: The show_frames of this OcrRequest. 146 :type: str 147 """ 148 149 self._show_frames = show_frames 150 151 @property 152 def show_text(self): 153 """ 154 Gets the show_text of this OcrRequest. 155 156 157 :return: The show_text of this OcrRequest. 158 :rtype: str 159 """ 160 return self._show_text 161 162 @show_text.setter 163 def show_text(self, show_text): 164 """ 165 Sets the show_text of this OcrRequest. 166 167 168 :param show_text: The show_text of this OcrRequest. 169 :type: str 170 """ 171 172 self._show_text = show_text 173 174 @property 175 def skip_pages_having_existing_extractable_text(self): 176 """ 177 Gets the skip_pages_having_existing_extractable_text of this OcrRequest. 178 179 180 :return: The skip_pages_having_existing_extractable_text of this OcrRequest. 181 :rtype: str 182 """ 183 return self._skip_pages_having_existing_extractable_text 184 185 @skip_pages_having_existing_extractable_text.setter 186 def skip_pages_having_existing_extractable_text(self, skip_pages_having_existing_extractable_text): 187 """ 188 Sets the skip_pages_having_existing_extractable_text of this OcrRequest. 189 190 191 :param skip_pages_having_existing_extractable_text: The skip_pages_having_existing_extractable_text of this OcrRequest. 192 :type: str 193 """ 194 195 self._skip_pages_having_existing_extractable_text = skip_pages_having_existing_extractable_text 196 197 def to_dict(self): 198 """ 199 Returns the model properties as a dict 200 """ 201 result = {} 202 203 for attr, _ in iteritems(self.swagger_types): 204 value = getattr(self, attr) 205 if isinstance(value, list): 206 result[attr] = list(map( 207 lambda x: x.to_dict() if hasattr(x, "to_dict") else x, 208 value 209 )) 210 elif hasattr(value, "to_dict"): 211 result[attr] = value.to_dict() 212 elif isinstance(value, dict): 213 result[attr] = dict(map( 214 lambda item: (item[0], item[1].to_dict()) 215 if hasattr(item[1], "to_dict") else item, 216 value.items() 217 )) 218 else: 219 result[attr] = value 220 221 return result 222 223 def to_str(self): 224 """ 225 Returns the string representation of the model 226 """ 227 return pformat(self.to_dict()) 228 229 def __repr__(self): 230 """ 231 For `print` and `pprint` 232 """ 233 return self.to_str() 234 235 def __eq__(self, other): 236 """ 237 Returns true if both objects are equal 238 """ 239 return self.__dict__ == other.__dict__ 240 241 def __ne__(self, other): 242 """ 243 Returns true if both objects are not equal 244 """ 245 return not self == other
NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually.
25 def __init__(self, ocr_language=None, page_selection=None, set_page_orientation=None, show_frames=None, show_text=None, skip_pages_having_existing_extractable_text=None): 26 """ 27 OcrRequest - 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 'ocr_language': 'str', 36 'page_selection': 'str', 37 'set_page_orientation': 'str', 38 'show_frames': 'str', 39 'show_text': 'str', 40 'skip_pages_having_existing_extractable_text': 'str' 41 } 42 43 self.attribute_map = { 44 'ocr_language': 'ocrLanguage', 45 'page_selection': 'pageSelection', 46 'set_page_orientation': 'setPageOrientation', 47 'show_frames': 'showFrames', 48 'show_text': 'showText', 49 'skip_pages_having_existing_extractable_text': 'skipPagesHavingExistingExtractableText' 50 } 51 52 self._ocr_language = ocr_language 53 self._page_selection = page_selection 54 self._set_page_orientation = set_page_orientation 55 self._show_frames = show_frames 56 self._show_text = show_text 57 self._skip_pages_having_existing_extractable_text = skip_pages_having_existing_extractable_text
OcrRequest - 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.
Gets the page_selection of this OcrRequest.
Returns
The page_selection of this OcrRequest.
Gets the set_page_orientation of this OcrRequest.
Returns
The set_page_orientation of this OcrRequest.
Gets the skip_pages_having_existing_extractable_text of this OcrRequest.
Returns
The skip_pages_having_existing_extractable_text of this OcrRequest.
197 def to_dict(self): 198 """ 199 Returns the model properties as a dict 200 """ 201 result = {} 202 203 for attr, _ in iteritems(self.swagger_types): 204 value = getattr(self, attr) 205 if isinstance(value, list): 206 result[attr] = list(map( 207 lambda x: x.to_dict() if hasattr(x, "to_dict") else x, 208 value 209 )) 210 elif hasattr(value, "to_dict"): 211 result[attr] = value.to_dict() 212 elif isinstance(value, dict): 213 result[attr] = dict(map( 214 lambda item: (item[0], item[1].to_dict()) 215 if hasattr(item[1], "to_dict") else item, 216 value.items() 217 )) 218 else: 219 result[attr] = value 220 221 return result
Returns the model properties as a dict