Skip to content

Commit 758a99a

Browse files
authored
Release 20.12 (#12)
1 parent 370d628 commit 758a99a

24 files changed

+542
-17
lines changed

README.md

Lines changed: 3 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: 20.11.0
4+
- Package version: 20.12.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

@@ -167,6 +167,7 @@ Class | Method | HTTP request | Description
167167
- [GeneratorParamsList](docs/GeneratorParamsList.md)
168168
- [ITF14BorderType](docs/ITF14BorderType.md)
169169
- [ITFParams](docs/ITFParams.md)
170+
- [MacroCharacter](docs/MacroCharacter.md)
170171
- [MaxiCodeParams](docs/MaxiCodeParams.md)
171172
- [ObjectExist](docs/ObjectExist.md)
172173
- [Padding](docs/Padding.md)
@@ -187,6 +188,7 @@ Class | Method | HTTP request | Description
187188
- [ResultImageInfo](docs/ResultImageInfo.md)
188189
- [StorageExist](docs/StorageExist.md)
189190
- [StorageFile](docs/StorageFile.md)
191+
- [StructuredAppend](docs/StructuredAppend.md)
190192
- [TextAlignment](docs/TextAlignment.md)
191193
- [FileVersion](docs/FileVersion.md)
192194

aspose_barcode_cloud/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,7 @@
8282
from aspose_barcode_cloud.models.generator_params_list import GeneratorParamsList
8383
from aspose_barcode_cloud.models.itf14_border_type import ITF14BorderType
8484
from aspose_barcode_cloud.models.itf_params import ITFParams
85+
from aspose_barcode_cloud.models.macro_character import MacroCharacter
8586
from aspose_barcode_cloud.models.maxi_code_params import MaxiCodeParams
8687
from aspose_barcode_cloud.models.object_exist import ObjectExist
8788
from aspose_barcode_cloud.models.padding import Padding
@@ -102,5 +103,6 @@
102103
from aspose_barcode_cloud.models.result_image_info import ResultImageInfo
103104
from aspose_barcode_cloud.models.storage_exist import StorageExist
104105
from aspose_barcode_cloud.models.storage_file import StorageFile
106+
from aspose_barcode_cloud.models.structured_append import StructuredAppend
105107
from aspose_barcode_cloud.models.text_alignment import TextAlignment
106108
from aspose_barcode_cloud.models.file_version import FileVersion

aspose_barcode_cloud/api/barcode_api.py

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ def get_barcode_generate(
5555
text_alignment=None,
5656
text_color=None,
5757
font_size_mode=None,
58+
no_wrap=None,
5859
resolution=None,
5960
resolution_x=None,
6061
resolution_y=None,
@@ -99,6 +100,7 @@ def get_barcode_generate(
99100
:param str text_alignment: Text alignment. # noqa: E501
100101
:param str text_color: Specify the displaying CodeText's Color. Default value: Color.Black. # noqa: E501
101102
:param str font_size_mode: Specify FontSizeMode. If FontSizeMode is set to Auto, font size will be calculated automatically based on xDimension value. It is recommended to use FontSizeMode.Auto especially in AutoSizeMode.Nearest or AutoSizeMode.Interpolation. Default value: FontSizeMode.Auto. # noqa: E501
103+
:param bool no_wrap: Specify word wraps (line breaks) within text. Default value: false. # noqa: E501
102104
:param float resolution: Resolution of the BarCode image. One value for both dimensions. Default value: 96 dpi. # noqa: E501
103105
:param float resolution_x: DEPRECATED: Use 'Resolution' instead. # noqa: E501
104106
:param float resolution_y: DEPRECATED: Use 'Resolution' instead. # noqa: E501
@@ -141,6 +143,7 @@ def get_barcode_generate(
141143
text_alignment=text_alignment,
142144
text_color=text_color,
143145
font_size_mode=font_size_mode,
146+
no_wrap=no_wrap,
144147
resolution=resolution,
145148
resolution_x=resolution_x,
146149
resolution_y=resolution_y,
@@ -179,6 +182,7 @@ def get_barcode_generate(
179182
text_alignment=text_alignment,
180183
text_color=text_color,
181184
font_size_mode=font_size_mode,
185+
no_wrap=no_wrap,
182186
resolution=resolution,
183187
resolution_x=resolution_x,
184188
resolution_y=resolution_y,
@@ -233,6 +237,7 @@ def get_barcode_generate_with_http_info(self, type, text, **kwargs):
233237
"text_alignment",
234238
"text_color",
235239
"font_size_mode",
240+
"no_wrap",
236241
"resolution",
237242
"resolution_x",
238243
"resolution_y",
@@ -301,6 +306,8 @@ def get_barcode_generate_with_http_info(self, type, text, **kwargs):
301306
query_params.append(("TextColor", params["text_color"]))
302307
if "font_size_mode" in params:
303308
query_params.append(("FontSizeMode", params["font_size_mode"]))
309+
if "no_wrap" in params:
310+
query_params.append(("NoWrap", params["no_wrap"]))
304311
if "resolution" in params:
305312
query_params.append(("Resolution", params["resolution"]))
306313
if "resolution_x" in params:
@@ -1193,6 +1200,7 @@ def put_barcode_generate_file(
11931200
text_alignment=None,
11941201
text_color=None,
11951202
font_size_mode=None,
1203+
no_wrap=None,
11961204
resolution=None,
11971205
resolution_x=None,
11981206
resolution_y=None,
@@ -1240,6 +1248,7 @@ def put_barcode_generate_file(
12401248
:param str text_alignment: Text alignment. # noqa: E501
12411249
:param str text_color: Specify the displaying CodeText's Color. Default value: Color.Black. # noqa: E501
12421250
:param str font_size_mode: Specify FontSizeMode. If FontSizeMode is set to Auto, font size will be calculated automatically based on xDimension value. It is recommended to use FontSizeMode.Auto especially in AutoSizeMode.Nearest or AutoSizeMode.Interpolation. Default value: FontSizeMode.Auto. # noqa: E501
1251+
:param bool no_wrap: Specify word wraps (line breaks) within text. Default value: false. # noqa: E501
12431252
:param float resolution: Resolution of the BarCode image. One value for both dimensions. Default value: 96 dpi. # noqa: E501
12441253
:param float resolution_x: DEPRECATED: Use 'Resolution' instead. # noqa: E501
12451254
:param float resolution_y: DEPRECATED: Use 'Resolution' instead. # noqa: E501
@@ -1285,6 +1294,7 @@ def put_barcode_generate_file(
12851294
text_alignment=text_alignment,
12861295
text_color=text_color,
12871296
font_size_mode=font_size_mode,
1297+
no_wrap=no_wrap,
12881298
resolution=resolution,
12891299
resolution_x=resolution_x,
12901300
resolution_y=resolution_y,
@@ -1326,6 +1336,7 @@ def put_barcode_generate_file(
13261336
text_alignment=text_alignment,
13271337
text_color=text_color,
13281338
font_size_mode=font_size_mode,
1339+
no_wrap=no_wrap,
13291340
resolution=resolution,
13301341
resolution_x=resolution_x,
13311342
resolution_y=resolution_y,
@@ -1384,6 +1395,7 @@ def put_barcode_generate_file_with_http_info(self, name, type, text, **kwargs):
13841395
"text_alignment",
13851396
"text_color",
13861397
"font_size_mode",
1398+
"no_wrap",
13871399
"resolution",
13881400
"resolution_x",
13891401
"resolution_y",
@@ -1459,6 +1471,8 @@ def put_barcode_generate_file_with_http_info(self, name, type, text, **kwargs):
14591471
query_params.append(("TextColor", params["text_color"]))
14601472
if "font_size_mode" in params:
14611473
query_params.append(("FontSizeMode", params["font_size_mode"]))
1474+
if "no_wrap" in params:
1475+
query_params.append(("NoWrap", params["no_wrap"]))
14621476
if "resolution" in params:
14631477
query_params.append(("Resolution", params["resolution"]))
14641478
if "resolution_x" in params:

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": "20.11.0"}
85+
self.default_headers = {"x-aspose-client": "python sdk", "x-aspose-client-version": "20.12.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/20.11.0/python"
90+
self.user_agent = "Aspose-Barcode-SDK/20.12.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: 20.11.0".format(env=sys.platform, pyversion=sys.version)
288+
"SDK Package Version: 20.12.0".format(env=sys.platform, pyversion=sys.version)
289289
)
290290

291291
@staticmethod

aspose_barcode_cloud/models/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@
7171
from aspose_barcode_cloud.models.generator_params_list import GeneratorParamsList
7272
from aspose_barcode_cloud.models.itf14_border_type import ITF14BorderType
7373
from aspose_barcode_cloud.models.itf_params import ITFParams
74+
from aspose_barcode_cloud.models.macro_character import MacroCharacter
7475
from aspose_barcode_cloud.models.maxi_code_params import MaxiCodeParams
7576
from aspose_barcode_cloud.models.object_exist import ObjectExist
7677
from aspose_barcode_cloud.models.padding import Padding
@@ -91,5 +92,6 @@
9192
from aspose_barcode_cloud.models.result_image_info import ResultImageInfo
9293
from aspose_barcode_cloud.models.storage_exist import StorageExist
9394
from aspose_barcode_cloud.models.storage_file import StorageFile
95+
from aspose_barcode_cloud.models.structured_append import StructuredAppend
9496
from aspose_barcode_cloud.models.text_alignment import TextAlignment
9597
from aspose_barcode_cloud.models.file_version import FileVersion

aspose_barcode_cloud/models/caption_params.py

Lines changed: 31 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ class CaptionParams(object):
5151
"visible": "bool",
5252
"font": "FontParams",
5353
"padding": "Padding",
54+
"no_wrap": "bool",
5455
}
5556

5657
attribute_map = {
@@ -60,9 +61,12 @@ class CaptionParams(object):
6061
"visible": "Visible",
6162
"font": "Font",
6263
"padding": "Padding",
64+
"no_wrap": "NoWrap",
6365
}
6466

65-
def __init__(self, text=None, alignment=None, color=None, visible=None, font=None, padding=None): # noqa: E501
67+
def __init__(
68+
self, text=None, alignment=None, color=None, visible=None, font=None, padding=None, no_wrap=None
69+
): # noqa: E501
6670
"""CaptionParams - a model defined in Swagger""" # noqa: E501
6771

6872
self._text = None
@@ -71,6 +75,7 @@ def __init__(self, text=None, alignment=None, color=None, visible=None, font=Non
7175
self._visible = None
7276
self._font = None
7377
self._padding = None
78+
self._no_wrap = None
7479
self.discriminator = None
7580

7681
if text is not None:
@@ -85,6 +90,8 @@ def __init__(self, text=None, alignment=None, color=None, visible=None, font=Non
8590
self.font = font
8691
if padding is not None:
8792
self.padding = padding
93+
if no_wrap is not None:
94+
self.no_wrap = no_wrap
8895

8996
@property
9097
def text(self):
@@ -224,6 +231,29 @@ def padding(self, padding):
224231

225232
self._padding = padding
226233

234+
@property
235+
def no_wrap(self):
236+
"""Gets the no_wrap of this CaptionParams. # noqa: E501
237+
238+
Specify word wraps (line breaks) within text. Default value: false. # noqa: E501
239+
240+
:return: The no_wrap of this CaptionParams. # noqa: E501
241+
:rtype: bool
242+
"""
243+
return self._no_wrap
244+
245+
@no_wrap.setter
246+
def no_wrap(self, no_wrap):
247+
"""Sets the no_wrap of this CaptionParams.
248+
249+
Specify word wraps (line breaks) within text. Default value: false. # noqa: E501
250+
251+
:param no_wrap: The no_wrap of this CaptionParams. # noqa: E501
252+
:type: bool
253+
"""
254+
255+
self._no_wrap = no_wrap
256+
227257
def to_dict(self):
228258
"""Returns the model properties as a dict"""
229259
result = {}

aspose_barcode_cloud/models/data_bar_params.py

Lines changed: 76 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -44,16 +44,37 @@ class DataBarParams(object):
4444
attribute_map (dict): The key is attribute name
4545
and the value is json key in definition.
4646
"""
47-
swagger_types = {"aspect_ratio": "float", "columns": "int", "rows": "int"}
48-
49-
attribute_map = {"aspect_ratio": "AspectRatio", "columns": "Columns", "rows": "Rows"}
50-
51-
def __init__(self, aspect_ratio=None, columns=None, rows=None): # noqa: E501
47+
swagger_types = {
48+
"aspect_ratio": "float",
49+
"columns": "int",
50+
"rows": "int",
51+
"is2_d_composite_component": "bool",
52+
"is_allow_only_gs1_encoding": "bool",
53+
}
54+
55+
attribute_map = {
56+
"aspect_ratio": "AspectRatio",
57+
"columns": "Columns",
58+
"rows": "Rows",
59+
"is2_d_composite_component": "Is2DCompositeComponent",
60+
"is_allow_only_gs1_encoding": "IsAllowOnlyGS1Encoding",
61+
}
62+
63+
def __init__(
64+
self,
65+
aspect_ratio=None,
66+
columns=None,
67+
rows=None,
68+
is2_d_composite_component=None,
69+
is_allow_only_gs1_encoding=None,
70+
): # noqa: E501
5271
"""DataBarParams - a model defined in Swagger""" # noqa: E501
5372

5473
self._aspect_ratio = None
5574
self._columns = None
5675
self._rows = None
76+
self._is2_d_composite_component = None
77+
self._is_allow_only_gs1_encoding = None
5778
self.discriminator = None
5879

5980
if aspect_ratio is not None:
@@ -62,6 +83,10 @@ def __init__(self, aspect_ratio=None, columns=None, rows=None): # noqa: E501
6283
self.columns = columns
6384
if rows is not None:
6485
self.rows = rows
86+
if is2_d_composite_component is not None:
87+
self.is2_d_composite_component = is2_d_composite_component
88+
if is_allow_only_gs1_encoding is not None:
89+
self.is_allow_only_gs1_encoding = is_allow_only_gs1_encoding
6590

6691
@property
6792
def aspect_ratio(self):
@@ -132,6 +157,52 @@ def rows(self, rows):
132157

133158
self._rows = rows
134159

160+
@property
161+
def is2_d_composite_component(self):
162+
"""Gets the is2_d_composite_component of this DataBarParams. # noqa: E501
163+
164+
Enables flag of 2D composite component with DataBar barcode # noqa: E501
165+
166+
:return: The is2_d_composite_component of this DataBarParams. # noqa: E501
167+
:rtype: bool
168+
"""
169+
return self._is2_d_composite_component
170+
171+
@is2_d_composite_component.setter
172+
def is2_d_composite_component(self, is2_d_composite_component):
173+
"""Sets the is2_d_composite_component of this DataBarParams.
174+
175+
Enables flag of 2D composite component with DataBar barcode # noqa: E501
176+
177+
:param is2_d_composite_component: The is2_d_composite_component of this DataBarParams. # noqa: E501
178+
:type: bool
179+
"""
180+
181+
self._is2_d_composite_component = is2_d_composite_component
182+
183+
@property
184+
def is_allow_only_gs1_encoding(self):
185+
"""Gets the is_allow_only_gs1_encoding of this DataBarParams. # noqa: E501
186+
187+
If this flag is set, it allows only GS1 encoding standard for Databar barcode types # noqa: E501
188+
189+
:return: The is_allow_only_gs1_encoding of this DataBarParams. # noqa: E501
190+
:rtype: bool
191+
"""
192+
return self._is_allow_only_gs1_encoding
193+
194+
@is_allow_only_gs1_encoding.setter
195+
def is_allow_only_gs1_encoding(self, is_allow_only_gs1_encoding):
196+
"""Sets the is_allow_only_gs1_encoding of this DataBarParams.
197+
198+
If this flag is set, it allows only GS1 encoding standard for Databar barcode types # noqa: E501
199+
200+
:param is_allow_only_gs1_encoding: The is_allow_only_gs1_encoding of this DataBarParams. # noqa: E501
201+
:type: bool
202+
"""
203+
204+
self._is_allow_only_gs1_encoding = is_allow_only_gs1_encoding
205+
135206
def to_dict(self):
136207
"""Returns the model properties as a dict"""
137208
result = {}

aspose_barcode_cloud/models/data_matrix_encode_mode.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ class DataMatrixEncodeMode(object):
4848
TEXT = "Text"
4949
EDIFACT = "EDIFACT"
5050
ANSIX12 = "ANSIX12"
51+
EXTENDEDCODETEXT = "ExtendedCodetext"
5152

5253
"""
5354
Attributes:

0 commit comments

Comments
 (0)