Skip to content

Commit 919e9f1

Browse files
authored
Release 23.9 (#65)
* Added field `AztecEncodeMode` * Field `textEncoding` made deprecated
1 parent 6a72adc commit 919e9f1

21 files changed

Lines changed: 290 additions & 20 deletions

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
[![PyPI](https://img.shields.io/pypi/v/aspose-barcode-cloud)](https://pypi.org/project/aspose-barcode-cloud/)
66

77
- API version: 3.0
8-
- Package version: 23.8.0
8+
- Package version: 23.9.0
99

1010
## Demo applications
1111

@@ -141,6 +141,7 @@ Class | Method | HTTP request | Description
141141
- [AustralianPostParams](docs/AustralianPostParams.md)
142142
- [AutoSizeMode](docs/AutoSizeMode.md)
143143
- [AvailableGraphicsUnit](docs/AvailableGraphicsUnit.md)
144+
- [AztecEncodeMode](docs/AztecEncodeMode.md)
144145
- [AztecParams](docs/AztecParams.md)
145146
- [AztecSymbolMode](docs/AztecSymbolMode.md)
146147
- [BarcodeResponse](docs/BarcodeResponse.md)

aspose_barcode_cloud/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@
4747
from aspose_barcode_cloud.models.australian_post_params import AustralianPostParams
4848
from aspose_barcode_cloud.models.auto_size_mode import AutoSizeMode
4949
from aspose_barcode_cloud.models.available_graphics_unit import AvailableGraphicsUnit
50+
from aspose_barcode_cloud.models.aztec_encode_mode import AztecEncodeMode
5051
from aspose_barcode_cloud.models.aztec_params import AztecParams
5152
from aspose_barcode_cloud.models.aztec_symbol_mode import AztecSymbolMode
5253
from aspose_barcode_cloud.models.barcode_response import BarcodeResponse

aspose_barcode_cloud/api_client.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,13 +90,13 @@ def __init__(self, configuration=None, header_name=None, header_value=None, cook
9090
self.rest_client = RESTClientObject(configuration)
9191
self.default_headers = {
9292
"x-aspose-client": "python sdk",
93-
"x-aspose-client-version": "23.8.0",
93+
"x-aspose-client-version": "23.9.0",
9494
}
9595
if header_name is not None:
9696
self.default_headers[header_name] = header_value
9797
self.cookie = cookie
9898
# Set default User-Agent.
99-
self.user_agent = "Aspose-Barcode-SDK/23.8.0/python"
99+
self.user_agent = "Aspose-Barcode-SDK/23.9.0/python"
100100

101101
def __del__(self):
102102
self.rest_client.close()

aspose_barcode_cloud/configuration.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -286,7 +286,7 @@ def to_debug_report(self):
286286
"OS: {env}\n"
287287
"Python Version: {pyversion}\n"
288288
"Version of the API: 3.0\n"
289-
"SDK Package Version: 23.8.0".format(env=sys.platform, pyversion=sys.version)
289+
"SDK Package Version: 23.9.0".format(env=sys.platform, pyversion=sys.version)
290290
)
291291

292292
@staticmethod

aspose_barcode_cloud/models/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@
3434
from aspose_barcode_cloud.models.australian_post_params import AustralianPostParams
3535
from aspose_barcode_cloud.models.auto_size_mode import AutoSizeMode
3636
from aspose_barcode_cloud.models.available_graphics_unit import AvailableGraphicsUnit
37+
from aspose_barcode_cloud.models.aztec_encode_mode import AztecEncodeMode
3738
from aspose_barcode_cloud.models.aztec_params import AztecParams
3839
from aspose_barcode_cloud.models.aztec_symbol_mode import AztecSymbolMode
3940
from aspose_barcode_cloud.models.barcode_response import BarcodeResponse
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) 2023 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+
import warnings # noqa: F401
31+
32+
import six
33+
34+
35+
class AztecEncodeMode(object):
36+
"""NOTE: This class is auto generated by the swagger code generator program.
37+
38+
Do not edit the class manually.
39+
"""
40+
41+
"""
42+
allowed enum values
43+
"""
44+
AUTO = "Auto"
45+
BYTES = "Bytes"
46+
EXTENDEDCODETEXT = "ExtendedCodetext"
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+
"""AztecEncodeMode - 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(AztecEncodeMode, 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, AztecEncodeMode):
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/aztec_params.py

Lines changed: 129 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,22 +50,44 @@ class AztecParams(object):
5050
"error_level": "int",
5151
"symbol_mode": "AztecSymbolMode",
5252
"text_encoding": "str",
53+
"encode_mode": "AztecEncodeMode",
54+
"eci_encoding": "ECIEncodings",
55+
"is_reader_initialization": "bool",
56+
"layers_count": "int",
5357
}
5458

5559
attribute_map = {
5660
"aspect_ratio": "AspectRatio",
5761
"error_level": "ErrorLevel",
5862
"symbol_mode": "SymbolMode",
5963
"text_encoding": "TextEncoding",
64+
"encode_mode": "EncodeMode",
65+
"eci_encoding": "ECIEncoding",
66+
"is_reader_initialization": "IsReaderInitialization",
67+
"layers_count": "LayersCount",
6068
}
6169

62-
def __init__(self, aspect_ratio=None, error_level=None, symbol_mode=None, text_encoding=None): # noqa: E501
70+
def __init__(
71+
self,
72+
aspect_ratio=None,
73+
error_level=None,
74+
symbol_mode=None,
75+
text_encoding=None,
76+
encode_mode=None,
77+
eci_encoding=None,
78+
is_reader_initialization=None,
79+
layers_count=None,
80+
): # noqa: E501
6381
"""AztecParams - a model defined in Swagger""" # noqa: E501
6482

6583
self._aspect_ratio = None
6684
self._error_level = None
6785
self._symbol_mode = None
6886
self._text_encoding = None
87+
self._encode_mode = None
88+
self._eci_encoding = None
89+
self._is_reader_initialization = None
90+
self._layers_count = None
6991
self.discriminator = None
7092

7193
if aspect_ratio is not None:
@@ -76,6 +98,14 @@ def __init__(self, aspect_ratio=None, error_level=None, symbol_mode=None, text_e
7698
self.symbol_mode = symbol_mode
7799
if text_encoding is not None:
78100
self.text_encoding = text_encoding
101+
if encode_mode is not None:
102+
self.encode_mode = encode_mode
103+
if eci_encoding is not None:
104+
self.eci_encoding = eci_encoding
105+
if is_reader_initialization is not None:
106+
self.is_reader_initialization = is_reader_initialization
107+
if layers_count is not None:
108+
self.layers_count = layers_count
79109

80110
@property
81111
def aspect_ratio(self):
@@ -150,7 +180,7 @@ def symbol_mode(self, symbol_mode):
150180
def text_encoding(self):
151181
"""Gets the text_encoding of this AztecParams. # noqa: E501
152182
153-
Sets the encoding of codetext. # noqa: E501
183+
DEPRECATED: This property is obsolete and will be removed in future releases. Unicode symbols detection and encoding will be processed in Auto mode with Extended Channel Interpretation charset designator. Using of own encodings requires manual CodeText encoding into byte[] array. Sets the encoding of codetext. # noqa: E501
154184
155185
:return: The text_encoding of this AztecParams. # noqa: E501
156186
:rtype: str
@@ -161,14 +191,110 @@ def text_encoding(self):
161191
def text_encoding(self, text_encoding):
162192
"""Sets the text_encoding of this AztecParams.
163193
164-
Sets the encoding of codetext. # noqa: E501
194+
DEPRECATED: This property is obsolete and will be removed in future releases. Unicode symbols detection and encoding will be processed in Auto mode with Extended Channel Interpretation charset designator. Using of own encodings requires manual CodeText encoding into byte[] array. Sets the encoding of codetext. # noqa: E501
165195
166196
:param text_encoding: The text_encoding of this AztecParams. # noqa: E501
167197
:type: str
168198
"""
199+
warnings.warn(
200+
"Property 'text_encoding' is deprecated. This property is obsolete and will be removed in future releases. Unicode symbols detection and encoding will be processed in Auto mode with Extended Channel Interpretation charset designator. Using of own encodings requires manual CodeText encoding into byte[] array. Sets the encoding of codetext.", # noqa: E501
201+
category=DeprecationWarning,
202+
)
169203

170204
self._text_encoding = text_encoding
171205

206+
@property
207+
def encode_mode(self):
208+
"""Gets the encode_mode of this AztecParams. # noqa: E501
209+
210+
Encoding mode for Aztec barcodes. Default value: Auto # noqa: E501
211+
212+
:return: The encode_mode of this AztecParams. # noqa: E501
213+
:rtype: AztecEncodeMode
214+
"""
215+
return self._encode_mode
216+
217+
@encode_mode.setter
218+
def encode_mode(self, encode_mode):
219+
"""Sets the encode_mode of this AztecParams.
220+
221+
Encoding mode for Aztec barcodes. Default value: Auto # noqa: E501
222+
223+
:param encode_mode: The encode_mode of this AztecParams. # noqa: E501
224+
:type: AztecEncodeMode
225+
"""
226+
227+
self._encode_mode = encode_mode
228+
229+
@property
230+
def eci_encoding(self):
231+
"""Gets the eci_encoding of this AztecParams. # noqa: E501
232+
233+
Identifies ECI encoding. Used when AztecEncodeMode is Auto. Default value: ISO-8859-1. # noqa: E501
234+
235+
:return: The eci_encoding of this AztecParams. # noqa: E501
236+
:rtype: ECIEncodings
237+
"""
238+
return self._eci_encoding
239+
240+
@eci_encoding.setter
241+
def eci_encoding(self, eci_encoding):
242+
"""Sets the eci_encoding of this AztecParams.
243+
244+
Identifies ECI encoding. Used when AztecEncodeMode is Auto. Default value: ISO-8859-1. # noqa: E501
245+
246+
:param eci_encoding: The eci_encoding of this AztecParams. # noqa: E501
247+
:type: ECIEncodings
248+
"""
249+
250+
self._eci_encoding = eci_encoding
251+
252+
@property
253+
def is_reader_initialization(self):
254+
"""Gets the is_reader_initialization of this AztecParams. # noqa: E501
255+
256+
Used to instruct the reader to interpret the data contained within the symbol as programming for reader initialization. # noqa: E501
257+
258+
:return: The is_reader_initialization of this AztecParams. # noqa: E501
259+
:rtype: bool
260+
"""
261+
return self._is_reader_initialization
262+
263+
@is_reader_initialization.setter
264+
def is_reader_initialization(self, is_reader_initialization):
265+
"""Sets the is_reader_initialization of this AztecParams.
266+
267+
Used to instruct the reader to interpret the data contained within the symbol as programming for reader initialization. # noqa: E501
268+
269+
:param is_reader_initialization: The is_reader_initialization of this AztecParams. # noqa: E501
270+
:type: bool
271+
"""
272+
273+
self._is_reader_initialization = is_reader_initialization
274+
275+
@property
276+
def layers_count(self):
277+
"""Gets the layers_count of this AztecParams. # noqa: E501
278+
279+
Gets or sets layers count of Aztec symbol. Layers count should be in range from 1 to 3 for Compact mode and in range from 1 to 32 for Full Range mode. Default value: 0 (auto). # noqa: E501
280+
281+
:return: The layers_count of this AztecParams. # noqa: E501
282+
:rtype: int
283+
"""
284+
return self._layers_count
285+
286+
@layers_count.setter
287+
def layers_count(self, layers_count):
288+
"""Sets the layers_count of this AztecParams.
289+
290+
Gets or sets layers count of Aztec symbol. Layers count should be in range from 1 to 3 for Compact mode and in range from 1 to 32 for Full Range mode. Default value: 0 (auto). # noqa: E501
291+
292+
:param layers_count: The layers_count of this AztecParams. # noqa: E501
293+
:type: int
294+
"""
295+
296+
self._layers_count = layers_count
297+
172298
def to_dict(self):
173299
"""Returns the model properties as a dict"""
174300
result = {}

aspose_barcode_cloud/models/data_matrix_params.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ def aspect_ratio(self, aspect_ratio):
134134
def text_encoding(self):
135135
"""Gets the text_encoding of this DataMatrixParams. # noqa: E501
136136
137-
Encoding of codetext. # noqa: E501
137+
DEPRECATED: This property is obsolete and will be removed in future releases. Unicode symbols detection and encoding will be processed in Auto mode with Extended Channel Interpretation charset designator. Using of own encodings requires manual CodeText encoding into byte[] array. Sets the encoding of codetext. # noqa: E501
138138
139139
:return: The text_encoding of this DataMatrixParams. # noqa: E501
140140
:rtype: str
@@ -145,11 +145,15 @@ def text_encoding(self):
145145
def text_encoding(self, text_encoding):
146146
"""Sets the text_encoding of this DataMatrixParams.
147147
148-
Encoding of codetext. # noqa: E501
148+
DEPRECATED: This property is obsolete and will be removed in future releases. Unicode symbols detection and encoding will be processed in Auto mode with Extended Channel Interpretation charset designator. Using of own encodings requires manual CodeText encoding into byte[] array. Sets the encoding of codetext. # noqa: E501
149149
150150
:param text_encoding: The text_encoding of this DataMatrixParams. # noqa: E501
151151
:type: str
152152
"""
153+
warnings.warn(
154+
"Property 'text_encoding' is deprecated. This property is obsolete and will be removed in future releases. Unicode symbols detection and encoding will be processed in Auto mode with Extended Channel Interpretation charset designator. Using of own encodings requires manual CodeText encoding into byte[] array. Sets the encoding of codetext.", # noqa: E501
155+
category=DeprecationWarning,
156+
)
153157

154158
self._text_encoding = text_encoding
155159

aspose_barcode_cloud/models/decode_barcode_type.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,8 @@ class DecodeBarcodeType(object):
122122
HIBCQRPAS = "HIBCQRPAS"
123123
HANXIN = "HanXin"
124124
GS1HANXIN = "GS1HanXin"
125+
GS1AZTEC = "GS1Aztec"
126+
GS1COMPOSITEBAR = "GS1CompositeBar"
125127

126128
"""
127129
Attributes:

aspose_barcode_cloud/models/encode_barcode_type.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,7 @@ class EncodeBarcodeType(object):
111111
GS1DOTCODE = "GS1DotCode"
112112
HANXIN = "HanXin"
113113
GS1HANXIN = "GS1HanXin"
114+
GS1AZTEC = "GS1Aztec"
114115

115116
"""
116117
Attributes:

0 commit comments

Comments
 (0)