Skip to content

Commit

Permalink
2.2.1
Browse files Browse the repository at this point in the history
  • Loading branch information
Cloudmersive committed Feb 10, 2020
1 parent a8c7e87 commit a73c68f
Show file tree
Hide file tree
Showing 7 changed files with 35 additions and 6 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ The powerful Optical Character Recognition (OCR) APIs let you convert scanned im
This Python package provides a native API client for [Cloudmersive OCR](https://www.cloudmersive.com/ocr-api)

- API version: v1
- Package version: 2.2.0
- Package version: 2.2.1
- Build package: io.swagger.codegen.languages.PythonClientCodegen

## Requirements.
Expand Down
2 changes: 1 addition & 1 deletion cloudmersive_ocr_api_client/api_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ def __init__(self, configuration=None, header_name=None, header_value=None,
self.default_headers[header_name] = header_value
self.cookie = cookie
# Set default User-Agent.
self.user_agent = 'Swagger-Codegen/2.2.0/python'
self.user_agent = 'Swagger-Codegen/2.2.1/python'

def __del__(self):
if self._pool is not None:
Expand Down
2 changes: 1 addition & 1 deletion cloudmersive_ocr_api_client/configuration.py
Original file line number Diff line number Diff line change
Expand Up @@ -240,5 +240,5 @@ def to_debug_report(self):
"OS: {env}\n"\
"Python Version: {pyversion}\n"\
"Version of the API: v1\n"\
"SDK Package Version: 2.2.0".\
"SDK Package Version: 2.2.1".\
format(env=sys.platform, pyversion=sys.version)
30 changes: 29 additions & 1 deletion cloudmersive_ocr_api_client/models/form_field_definition.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ class FormFieldDefinition(object):
'left_anchor': 'str',
'top_anchor': 'str',
'bottom_anchor': 'str',
'alternate_anchor': 'str',
'anchor_mode': 'str',
'data_type': 'str',
'target_digit_count': 'int',
Expand All @@ -55,6 +56,7 @@ class FormFieldDefinition(object):
'left_anchor': 'LeftAnchor',
'top_anchor': 'TopAnchor',
'bottom_anchor': 'BottomAnchor',
'alternate_anchor': 'AlternateAnchor',
'anchor_mode': 'AnchorMode',
'data_type': 'DataType',
'target_digit_count': 'TargetDigitCount',
Expand All @@ -70,13 +72,14 @@ class FormFieldDefinition(object):
'options': 'Options'
}

def __init__(self, field_id=None, left_anchor=None, top_anchor=None, bottom_anchor=None, anchor_mode=None, data_type=None, target_digit_count=None, minimum_character_count=None, allow_numeric_digits=None, vertical_alignment_type=None, horizontal_alignment_type=None, target_field_width_relative=None, target_field_height_relative=None, target_field_horizontal_adjustment=None, target_field_vertical_adjustment=None, ignore=None, options=None): # noqa: E501
def __init__(self, field_id=None, left_anchor=None, top_anchor=None, bottom_anchor=None, alternate_anchor=None, anchor_mode=None, data_type=None, target_digit_count=None, minimum_character_count=None, allow_numeric_digits=None, vertical_alignment_type=None, horizontal_alignment_type=None, target_field_width_relative=None, target_field_height_relative=None, target_field_horizontal_adjustment=None, target_field_vertical_adjustment=None, ignore=None, options=None): # noqa: E501
"""FormFieldDefinition - a model defined in Swagger""" # noqa: E501

self._field_id = None
self._left_anchor = None
self._top_anchor = None
self._bottom_anchor = None
self._alternate_anchor = None
self._anchor_mode = None
self._data_type = None
self._target_digit_count = None
Expand All @@ -100,6 +103,8 @@ def __init__(self, field_id=None, left_anchor=None, top_anchor=None, bottom_anch
self.top_anchor = top_anchor
if bottom_anchor is not None:
self.bottom_anchor = bottom_anchor
if alternate_anchor is not None:
self.alternate_anchor = alternate_anchor
if anchor_mode is not None:
self.anchor_mode = anchor_mode
if data_type is not None:
Expand Down Expand Up @@ -219,6 +224,29 @@ def bottom_anchor(self, bottom_anchor):

self._bottom_anchor = bottom_anchor

@property
def alternate_anchor(self):
"""Gets the alternate_anchor of this FormFieldDefinition. # noqa: E501
Optional - alterate match text for the specified anchor # noqa: E501
:return: The alternate_anchor of this FormFieldDefinition. # noqa: E501
:rtype: str
"""
return self._alternate_anchor

@alternate_anchor.setter
def alternate_anchor(self, alternate_anchor):
"""Sets the alternate_anchor of this FormFieldDefinition.
Optional - alterate match text for the specified anchor # noqa: E501
:param alternate_anchor: The alternate_anchor of this FormFieldDefinition. # noqa: E501
:type: str
"""

self._alternate_anchor = alternate_anchor

@property
def anchor_mode(self):
"""Gets the anchor_mode of this FormFieldDefinition. # noqa: E501
Expand Down
1 change: 1 addition & 0 deletions docs/FormFieldDefinition.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ Name | Type | Description | Notes
**left_anchor** | **str** | Optional - the left-hand anchor of the field | [optional]
**top_anchor** | **str** | Optional - the top anchor of the field | [optional]
**bottom_anchor** | **str** | Optional - the bottom anchor of the field | [optional]
**alternate_anchor** | **str** | Optional - alterate match text for the specified anchor | [optional]
**anchor_mode** | **str** | Optional - the matching mode for the anchor. Possible values are Complete (requires the entire anchor to match) and Partial (allows only part of the anchor to match) and Horizontal (anchor must be laid out horizontally). Default is Partial. | [optional]
**data_type** | **str** | The data type of the field; possible values are INTEGER (Integer value), STRING (Arbitrary string value, spaces are permitted), DATE (Date in a structured format), DECIMAL (Decimal number), ALPHANUMERIC (Continuous alphanumeric string with no spaces), STRINGNOWHITESPACE (A string that contains no whitespace characters), SERIALNUMBER (A serial-number style string that contains letters and numbers, and certain symbols; must contain at least one number), ALPHAONLY (Alphabet characters only, no numbers or symbols or whitespace) | [optional]
**target_digit_count** | **int** | Optional - the target number of digits in the field; useful for fixed-length fields | [optional]
Expand Down
2 changes: 1 addition & 1 deletion packageconfig.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"projectName" : "cloudmersive_ocr_api_client",
"packageName" : "cloudmersive_ocr_api_client",
"packageVersion": "2.2.0",
"packageVersion": "2.2.1",
"packageUrl": "https://www.cloudmersive.com/ocr-api"
}
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
from setuptools import setup, find_packages # noqa: H301

NAME = "cloudmersive_ocr_api_client"
VERSION = "2.2.0"
VERSION = "2.2.1"
# To install the library, run the following
#
# python setup.py install
Expand Down

0 comments on commit a73c68f

Please sign in to comment.