Skip to content

Commit aef8646

Browse files
authored
Release 23.5 (#58)
* Generator parameter Code128Params.Code128EncodeMode added
1 parent 42b0c20 commit aef8646

13 files changed

Lines changed: 295 additions & 7 deletions

README.md

Lines changed: 3 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.4.0
8+
- Package version: 23.5.0
99

1010
## Demo applications
1111

@@ -154,6 +154,8 @@ Class | Method | HTTP request | Description
154154
- [CodabarSymbol](docs/CodabarSymbol.md)
155155
- [CodablockParams](docs/CodablockParams.md)
156156
- [Code128Emulation](docs/Code128Emulation.md)
157+
- [Code128EncodeMode](docs/Code128EncodeMode.md)
158+
- [Code128Params](docs/Code128Params.md)
157159
- [Code16KParams](docs/Code16KParams.md)
158160
- [CodeLocation](docs/CodeLocation.md)
159161
- [CouponParams](docs/CouponParams.md)

aspose_barcode_cloud/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,8 @@
5959
from aspose_barcode_cloud.models.codabar_symbol import CodabarSymbol
6060
from aspose_barcode_cloud.models.codablock_params import CodablockParams
6161
from aspose_barcode_cloud.models.code128_emulation import Code128Emulation
62+
from aspose_barcode_cloud.models.code128_encode_mode import Code128EncodeMode
63+
from aspose_barcode_cloud.models.code128_params import Code128Params
6264
from aspose_barcode_cloud.models.code16_k_params import Code16KParams
6365
from aspose_barcode_cloud.models.code_location import CodeLocation
6466
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
@@ -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.4.0",
93+
"x-aspose-client-version": "23.5.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.4.0/python"
99+
self.user_agent = "Aspose-Barcode-SDK/23.5.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.4.0".format(env=sys.platform, pyversion=sys.version)
289+
"SDK Package Version: 23.5.0".format(env=sys.platform, pyversion=sys.version)
290290
)
291291

292292
@staticmethod

aspose_barcode_cloud/models/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,8 @@
4646
from aspose_barcode_cloud.models.codabar_symbol import CodabarSymbol
4747
from aspose_barcode_cloud.models.codablock_params import CodablockParams
4848
from aspose_barcode_cloud.models.code128_emulation import Code128Emulation
49+
from aspose_barcode_cloud.models.code128_encode_mode import Code128EncodeMode
50+
from aspose_barcode_cloud.models.code128_params import Code128Params
4951
from aspose_barcode_cloud.models.code16_k_params import Code16KParams
5052
from aspose_barcode_cloud.models.code_location import CodeLocation
5153
from aspose_barcode_cloud.models.coupon_params import CouponParams
Lines changed: 108 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,108 @@
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+
31+
import six
32+
33+
34+
class Code128EncodeMode(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+
AUTO = "Auto"
44+
CODEA = "CodeA"
45+
CODEB = "CodeB"
46+
CODEAB = "CodeAB"
47+
CODEC = "CodeC"
48+
CODEAC = "CodeAC"
49+
CODEBC = "CodeBC"
50+
51+
"""
52+
Attributes:
53+
swagger_types (dict): The key is attribute name
54+
and the value is attribute type.
55+
attribute_map (dict): The key is attribute name
56+
and the value is json key in definition.
57+
"""
58+
swagger_types = {}
59+
60+
attribute_map = {}
61+
62+
def __init__(self): # noqa: E501
63+
"""Code128EncodeMode - a model defined in Swagger""" # noqa: E501
64+
self.discriminator = None
65+
66+
def to_dict(self):
67+
"""Returns the model properties as a dict"""
68+
result = {}
69+
70+
for attr, _ in six.iteritems(self.swagger_types):
71+
value = getattr(self, attr)
72+
if isinstance(value, list):
73+
result[attr] = list(map(lambda x: x.to_dict() if hasattr(x, "to_dict") else x, value))
74+
elif hasattr(value, "to_dict"):
75+
result[attr] = value.to_dict()
76+
elif isinstance(value, dict):
77+
result[attr] = dict(
78+
map(
79+
lambda item: (item[0], item[1].to_dict()) if hasattr(item[1], "to_dict") else item,
80+
value.items(),
81+
)
82+
)
83+
else:
84+
result[attr] = value
85+
if issubclass(Code128EncodeMode, dict):
86+
for key, value in self.items():
87+
result[key] = value
88+
89+
return result
90+
91+
def to_str(self):
92+
"""Returns the string representation of the model"""
93+
return pprint.pformat(self.to_dict())
94+
95+
def __repr__(self):
96+
"""For `print` and `pprint`"""
97+
return self.to_str()
98+
99+
def __eq__(self, other):
100+
"""Returns true if both objects are equal"""
101+
if not isinstance(other, Code128EncodeMode):
102+
return False
103+
104+
return self.__dict__ == other.__dict__
105+
106+
def __ne__(self, other):
107+
"""Returns true if both objects are not equal"""
108+
return not self == other
Lines changed: 125 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,125 @@
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+
31+
import six
32+
33+
34+
class Code128Params(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+
Attributes:
42+
swagger_types (dict): The key is attribute name
43+
and the value is attribute type.
44+
attribute_map (dict): The key is attribute name
45+
and the value is json key in definition.
46+
"""
47+
swagger_types = {"encode_mode": "Code128EncodeMode"}
48+
49+
attribute_map = {"encode_mode": "EncodeMode"}
50+
51+
def __init__(self, encode_mode=None): # noqa: E501
52+
"""Code128Params - a model defined in Swagger""" # noqa: E501
53+
54+
self._encode_mode = None
55+
self.discriminator = None
56+
57+
if encode_mode is not None:
58+
self.encode_mode = encode_mode
59+
60+
@property
61+
def encode_mode(self):
62+
"""Gets the encode_mode of this Code128Params. # noqa: E501
63+
64+
Encoding mode for Code128 barcodes. Code 128 specification Default value: Code128EncodeMode.Auto. # noqa: E501
65+
66+
:return: The encode_mode of this Code128Params. # noqa: E501
67+
:rtype: Code128EncodeMode
68+
"""
69+
return self._encode_mode
70+
71+
@encode_mode.setter
72+
def encode_mode(self, encode_mode):
73+
"""Sets the encode_mode of this Code128Params.
74+
75+
Encoding mode for Code128 barcodes. Code 128 specification Default value: Code128EncodeMode.Auto. # noqa: E501
76+
77+
:param encode_mode: The encode_mode of this Code128Params. # noqa: E501
78+
:type: Code128EncodeMode
79+
"""
80+
81+
self._encode_mode = encode_mode
82+
83+
def to_dict(self):
84+
"""Returns the model properties as a dict"""
85+
result = {}
86+
87+
for attr, _ in six.iteritems(self.swagger_types):
88+
value = getattr(self, attr)
89+
if isinstance(value, list):
90+
result[attr] = list(map(lambda x: x.to_dict() if hasattr(x, "to_dict") else x, value))
91+
elif hasattr(value, "to_dict"):
92+
result[attr] = value.to_dict()
93+
elif isinstance(value, dict):
94+
result[attr] = dict(
95+
map(
96+
lambda item: (item[0], item[1].to_dict()) if hasattr(item[1], "to_dict") else item,
97+
value.items(),
98+
)
99+
)
100+
else:
101+
result[attr] = value
102+
if issubclass(Code128Params, dict):
103+
for key, value in self.items():
104+
result[key] = value
105+
106+
return result
107+
108+
def to_str(self):
109+
"""Returns the string representation of the model"""
110+
return pprint.pformat(self.to_dict())
111+
112+
def __repr__(self):
113+
"""For `print` and `pprint`"""
114+
return self.to_str()
115+
116+
def __eq__(self, other):
117+
"""Returns true if both objects are equal"""
118+
if not isinstance(other, Code128Params):
119+
return False
120+
121+
return self.__dict__ == other.__dict__
122+
123+
def __ne__(self, other):
124+
"""Returns true if both objects are not equal"""
125+
return not self == other

aspose_barcode_cloud/models/generator_params.py

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,7 @@ class GeneratorParams(object):
9999
"postal": "PostalParams",
100100
"qr": "QrParams",
101101
"patch_code": "PatchCodeParams",
102+
"code128": "Code128Params",
102103
}
103104

104105
attribute_map = {
@@ -156,6 +157,7 @@ class GeneratorParams(object):
156157
"postal": "Postal",
157158
"qr": "QR",
158159
"patch_code": "PatchCode",
160+
"code128": "Code128",
159161
}
160162

161163
def __init__(
@@ -214,6 +216,7 @@ def __init__(
214216
postal=None,
215217
qr=None,
216218
patch_code=None,
219+
code128=None,
217220
): # noqa: E501
218221
"""GeneratorParams - a model defined in Swagger""" # noqa: E501
219222

@@ -271,6 +274,7 @@ def __init__(
271274
self._postal = None
272275
self._qr = None
273276
self._patch_code = None
277+
self._code128 = None
274278
self.discriminator = None
275279

276280
self.type_of_barcode = type_of_barcode
@@ -379,6 +383,8 @@ def __init__(
379383
self.qr = qr
380384
if patch_code is not None:
381385
self.patch_code = patch_code
386+
if code128 is not None:
387+
self.code128 = code128
382388

383389
@property
384390
def type_of_barcode(self):
@@ -1626,6 +1632,29 @@ def patch_code(self, patch_code):
16261632

16271633
self._patch_code = patch_code
16281634

1635+
@property
1636+
def code128(self):
1637+
"""Gets the code128 of this GeneratorParams. # noqa: E501
1638+
1639+
Code128 params. # noqa: E501
1640+
1641+
:return: The code128 of this GeneratorParams. # noqa: E501
1642+
:rtype: Code128Params
1643+
"""
1644+
return self._code128
1645+
1646+
@code128.setter
1647+
def code128(self, code128):
1648+
"""Sets the code128 of this GeneratorParams.
1649+
1650+
Code128 params. # noqa: E501
1651+
1652+
:param code128: The code128 of this GeneratorParams. # noqa: E501
1653+
:type: Code128Params
1654+
"""
1655+
1656+
self._code128 = code128
1657+
16291658
def to_dict(self):
16301659
"""Returns the model properties as a dict"""
16311660
result = {}

docs/Code128EncodeMode.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# Code128EncodeMode
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/Code128Params.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# Code128Params
2+
3+
## Properties
4+
Name | Type | Description | Notes
5+
------------ | ------------- | ------------- | -------------
6+
**encode_mode** | [**Code128EncodeMode**](Code128EncodeMode.md) | Encoding mode for Code128 barcodes. Code 128 specification Default value: Code128EncodeMode.Auto. | [optional]
7+
8+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
9+
10+

0 commit comments

Comments
 (0)