Skip to content

Commit 9d9bef2

Browse files
authored
Release 21.3 (#17)
* Release 21.3
1 parent 69cadd8 commit 9d9bef2

11 files changed

Lines changed: 154 additions & 7 deletions

File tree

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Aspose.BarCode Cloud SDK for Python
22

33
- API version: 3.0
4-
- Package version: 21.2.0
4+
- Package version: 21.3.0
55

66
[Aspose.BarCode for Cloud](https://products.aspose.cloud/barcode/cloud) is a REST API for Linear, 2D and postal barcode generation and recognition in the cloud. API recognizes and generates barcode images in a variety of formats. Barcode REST API allows to specify barcode image attributes like image width, height, border style and output image format in order to customize the generation process. Developers can also specify the barcode type and text attributes such as text location and font styles in order to suit the application requirements.
77

@@ -141,6 +141,7 @@ Class | Method | HTTP request | Description
141141
- [CodabarParams](docs/CodabarParams.md)
142142
- [CodabarSymbol](docs/CodabarSymbol.md)
143143
- [CodablockParams](docs/CodablockParams.md)
144+
- [Code128Emulation](docs/Code128Emulation.md)
144145
- [Code16KParams](docs/Code16KParams.md)
145146
- [CodeLocation](docs/CodeLocation.md)
146147
- [CouponParams](docs/CouponParams.md)

aspose_barcode_cloud/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@
5656
from aspose_barcode_cloud.models.codabar_params import CodabarParams
5757
from aspose_barcode_cloud.models.codabar_symbol import CodabarSymbol
5858
from aspose_barcode_cloud.models.codablock_params import CodablockParams
59+
from aspose_barcode_cloud.models.code128_emulation import Code128Emulation
5960
from aspose_barcode_cloud.models.code16_k_params import Code16KParams
6061
from aspose_barcode_cloud.models.code_location import CodeLocation
6162
from aspose_barcode_cloud.models.coupon_params import CouponParams

aspose_barcode_cloud/api_client.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,12 +82,12 @@ def __init__(self, configuration=None, header_name=None, header_value=None, cook
8282
# Use the pool property to lazily initialize the ThreadPool.
8383
self._pool = None
8484
self.rest_client = rest.RESTClientObject(configuration)
85-
self.default_headers = {"x-aspose-client": "python sdk", "x-aspose-client-version": "21.2.0"}
85+
self.default_headers = {"x-aspose-client": "python sdk", "x-aspose-client-version": "21.3.0"}
8686
if header_name is not None:
8787
self.default_headers[header_name] = header_value
8888
self.cookie = cookie
8989
# Set default User-Agent.
90-
self.user_agent = "Aspose-Barcode-SDK/21.2.0/python"
90+
self.user_agent = "Aspose-Barcode-SDK/21.3.0/python"
9191

9292
def __del__(self):
9393
if self._pool is not None:

aspose_barcode_cloud/configuration.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -285,7 +285,7 @@ def to_debug_report(self):
285285
"OS: {env}\n"
286286
"Python Version: {pyversion}\n"
287287
"Version of the API: 3.0\n"
288-
"SDK Package Version: 21.2.0".format(env=sys.platform, pyversion=sys.version)
288+
"SDK Package Version: 21.3.0".format(env=sys.platform, pyversion=sys.version)
289289
)
290290

291291
@staticmethod

aspose_barcode_cloud/models/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@
4545
from aspose_barcode_cloud.models.codabar_params import CodabarParams
4646
from aspose_barcode_cloud.models.codabar_symbol import CodabarSymbol
4747
from aspose_barcode_cloud.models.codablock_params import CodablockParams
48+
from aspose_barcode_cloud.models.code128_emulation import Code128Emulation
4849
from aspose_barcode_cloud.models.code16_k_params import Code16KParams
4950
from aspose_barcode_cloud.models.code_location import CodeLocation
5051
from aspose_barcode_cloud.models.coupon_params import CouponParams
Lines changed: 105 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,105 @@
1+
# coding: utf-8
2+
3+
"""
4+
5+
Copyright (c) 2021 Aspose.BarCode for Cloud
6+
7+
Permission is hereby granted, free of charge, to any person obtaining a copy
8+
of this software and associated documentation files (the "Software"), to deal
9+
in the Software without restriction, including without limitation the rights
10+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
11+
copies of the Software, and to permit persons to whom the Software is
12+
furnished to do so, subject to the following conditions:
13+
14+
The above copyright notice and this permission notice shall be included in all
15+
copies or substantial portions of the Software.
16+
17+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
18+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
19+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
20+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
21+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
22+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
23+
SOFTWARE.
24+
25+
"""
26+
27+
28+
import pprint
29+
import re # noqa: F401
30+
31+
import six
32+
33+
34+
class Code128Emulation(object):
35+
"""NOTE: This class is auto generated by the swagger code generator program.
36+
37+
Do not edit the class manually.
38+
"""
39+
40+
"""
41+
allowed enum values
42+
"""
43+
NONE = "None"
44+
CODE903 = "Code903"
45+
CODE904 = "Code904"
46+
CODE905 = "Code905"
47+
48+
"""
49+
Attributes:
50+
swagger_types (dict): The key is attribute name
51+
and the value is attribute type.
52+
attribute_map (dict): The key is attribute name
53+
and the value is json key in definition.
54+
"""
55+
swagger_types = {}
56+
57+
attribute_map = {}
58+
59+
def __init__(self): # noqa: E501
60+
"""Code128Emulation - a model defined in Swagger""" # noqa: E501
61+
self.discriminator = None
62+
63+
def to_dict(self):
64+
"""Returns the model properties as a dict"""
65+
result = {}
66+
67+
for attr, _ in six.iteritems(self.swagger_types):
68+
value = getattr(self, attr)
69+
if isinstance(value, list):
70+
result[attr] = list(map(lambda x: x.to_dict() if hasattr(x, "to_dict") else x, value))
71+
elif hasattr(value, "to_dict"):
72+
result[attr] = value.to_dict()
73+
elif isinstance(value, dict):
74+
result[attr] = dict(
75+
map(
76+
lambda item: (item[0], item[1].to_dict()) if hasattr(item[1], "to_dict") else item,
77+
value.items(),
78+
)
79+
)
80+
else:
81+
result[attr] = value
82+
if issubclass(Code128Emulation, dict):
83+
for key, value in self.items():
84+
result[key] = value
85+
86+
return result
87+
88+
def to_str(self):
89+
"""Returns the string representation of the model"""
90+
return pprint.pformat(self.to_dict())
91+
92+
def __repr__(self):
93+
"""For `print` and `pprint`"""
94+
return self.to_str()
95+
96+
def __eq__(self, other):
97+
"""Returns true if both objects are equal"""
98+
if not isinstance(other, Code128Emulation):
99+
return False
100+
101+
return self.__dict__ == other.__dict__
102+
103+
def __ne__(self, other):
104+
"""Returns true if both objects are not equal"""
105+
return not self == other

aspose_barcode_cloud/models/pdf417_params.py

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@ class Pdf417Params(object):
6464
"macro_file_name": "str",
6565
"macro_addressee": "str",
6666
"macro_eci_encoding": "ECIEncodings",
67+
"code128_emulation": "Code128Emulation",
6768
}
6869

6970
attribute_map = {
@@ -86,6 +87,7 @@ class Pdf417Params(object):
8687
"macro_file_name": "MacroFileName",
8788
"macro_addressee": "MacroAddressee",
8889
"macro_eci_encoding": "MacroECIEncoding",
90+
"code128_emulation": "Code128Emulation",
8991
}
9092

9193
def __init__(
@@ -109,6 +111,7 @@ def __init__(
109111
macro_file_name=None,
110112
macro_addressee=None,
111113
macro_eci_encoding=None,
114+
code128_emulation=None,
112115
): # noqa: E501
113116
"""Pdf417Params - a model defined in Swagger""" # noqa: E501
114117

@@ -131,6 +134,7 @@ def __init__(
131134
self._macro_file_name = None
132135
self._macro_addressee = None
133136
self._macro_eci_encoding = None
137+
self._code128_emulation = None
134138
self.discriminator = None
135139

136140
if aspect_ratio is not None:
@@ -171,6 +175,8 @@ def __init__(
171175
self.macro_addressee = macro_addressee
172176
if macro_eci_encoding is not None:
173177
self.macro_eci_encoding = macro_eci_encoding
178+
if code128_emulation is not None:
179+
self.code128_emulation = code128_emulation
174180

175181
@property
176182
def aspect_ratio(self):
@@ -609,6 +615,29 @@ def macro_eci_encoding(self, macro_eci_encoding):
609615

610616
self._macro_eci_encoding = macro_eci_encoding
611617

618+
@property
619+
def code128_emulation(self):
620+
"""Gets the code128_emulation of this Pdf417Params. # noqa: E501
621+
622+
Function codeword for Code 128 emulation. Applied for MicroPDF417 only. Ignored for PDF417 and MacroPDF417 barcodes. # noqa: E501
623+
624+
:return: The code128_emulation of this Pdf417Params. # noqa: E501
625+
:rtype: Code128Emulation
626+
"""
627+
return self._code128_emulation
628+
629+
@code128_emulation.setter
630+
def code128_emulation(self, code128_emulation):
631+
"""Sets the code128_emulation of this Pdf417Params.
632+
633+
Function codeword for Code 128 emulation. Applied for MicroPDF417 only. Ignored for PDF417 and MacroPDF417 barcodes. # noqa: E501
634+
635+
:param code128_emulation: The code128_emulation of this Pdf417Params. # noqa: E501
636+
:type: Code128Emulation
637+
"""
638+
639+
self._code128_emulation = code128_emulation
640+
612641
def to_dict(self):
613642
"""Returns the model properties as a dict"""
614643
result = {}

docs/Code128Emulation.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# Code128Emulation
2+
3+
## Properties
4+
Name | Type | Description | Notes
5+
------------ | ------------- | ------------- | -------------
6+
7+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
8+
9+

docs/Pdf417Params.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ Name | Type | Description | Notes
2222
**macro_file_name** | **str** | Macro Pdf417 barcode file name | [optional]
2323
**macro_addressee** | **str** | Macro Pdf417 barcode addressee name | [optional]
2424
**macro_eci_encoding** | [**ECIEncodings**](ECIEncodings.md) | Extended Channel Interpretation Identifiers. Applies for Macro PDF417 text fields. | [optional]
25+
**code128_emulation** | [**Code128Emulation**](Code128Emulation.md) | Function codeword for Code 128 emulation. Applied for MicroPDF417 only. Ignored for PDF417 and MacroPDF417 barcodes. | [optional]
2526

2627
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
2728

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
from setuptools import setup, find_packages
3030

3131
NAME = "aspose-barcode-cloud"
32-
VERSION = "21.2.0"
32+
VERSION = "21.3.0"
3333
# To install the library, run the following
3434
#
3535
# python setup.py install

0 commit comments

Comments
 (0)