Skip to content

Commit ea9a037

Browse files
authored
Release 22.11 (#48)
* Add MaxiCodeMode class *Add :param mode: :type: MaxiCodeMode to MaxiCodeParams *Delete :param encode_mode: :type: int MaxiCodeParams * Try to temp fix build issue actions/setup-python#162
1 parent 9e87951 commit ea9a037

14 files changed

Lines changed: 148 additions & 29 deletions

File tree

.github/workflows/python-latest.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ on:
99
jobs:
1010
# Define the job to run before your matrix job
1111
get-python-versions:
12-
runs-on: ubuntu-latest
12+
runs-on: ubuntu-20.04
1313
outputs:
1414
python-matrix: ${{ steps.get-python-versions-action.outputs.latest-python-versions }}
1515
steps:

.github/workflows/python-package.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ on:
1212
jobs:
1313
build:
1414

15-
runs-on: ubuntu-latest
15+
runs-on: ubuntu-20.04
1616
strategy:
1717
matrix:
1818
# see https://www.python.org/downloads/

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: 22.10.0
8+
- Package version: 22.11.0
99

1010
## Demo applications
1111

@@ -181,6 +181,7 @@ Class | Method | HTTP request | Description
181181
- [ITF14BorderType](docs/ITF14BorderType.md)
182182
- [ITFParams](docs/ITFParams.md)
183183
- [MacroCharacter](docs/MacroCharacter.md)
184+
- [MaxiCodeMode](docs/MaxiCodeMode.md)
184185
- [MaxiCodeParams](docs/MaxiCodeParams.md)
185186
- [ObjectExist](docs/ObjectExist.md)
186187
- [Padding](docs/Padding.md)

aspose_barcode_cloud/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,7 @@
8686
from aspose_barcode_cloud.models.itf14_border_type import ITF14BorderType
8787
from aspose_barcode_cloud.models.itf_params import ITFParams
8888
from aspose_barcode_cloud.models.macro_character import MacroCharacter
89+
from aspose_barcode_cloud.models.maxi_code_mode import MaxiCodeMode
8990
from aspose_barcode_cloud.models.maxi_code_params import MaxiCodeParams
9091
from aspose_barcode_cloud.models.object_exist import ObjectExist
9192
from aspose_barcode_cloud.models.padding import Padding

aspose_barcode_cloud/api_client.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,13 +91,13 @@ def __init__(self, configuration=None, header_name=None, header_value=None, cook
9191
self.rest_client = RESTClientObject(configuration)
9292
self.default_headers = {
9393
"x-aspose-client": "python sdk",
94-
"x-aspose-client-version": "22.10.0",
94+
"x-aspose-client-version": "22.11.0",
9595
}
9696
if header_name is not None:
9797
self.default_headers[header_name] = header_value
9898
self.cookie = cookie
9999
# Set default User-Agent.
100-
self.user_agent = "Aspose-Barcode-SDK/22.10.0/python"
100+
self.user_agent = "Aspose-Barcode-SDK/22.11.0/python"
101101

102102
def __del__(self):
103103
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: 22.10.0".format(env=sys.platform, pyversion=sys.version)
289+
"SDK Package Version: 22.11.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
@@ -73,6 +73,7 @@
7373
from aspose_barcode_cloud.models.itf14_border_type import ITF14BorderType
7474
from aspose_barcode_cloud.models.itf_params import ITFParams
7575
from aspose_barcode_cloud.models.macro_character import MacroCharacter
76+
from aspose_barcode_cloud.models.maxi_code_mode import MaxiCodeMode
7677
from aspose_barcode_cloud.models.maxi_code_params import MaxiCodeParams
7778
from aspose_barcode_cloud.models.object_exist import ObjectExist
7879
from aspose_barcode_cloud.models.padding import Padding
Lines changed: 106 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,106 @@
1+
# coding: utf-8
2+
3+
"""
4+
5+
Copyright (c) 2022 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 MaxiCodeMode(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+
MODE2 = "Mode2"
44+
MODE3 = "Mode3"
45+
MODE4 = "Mode4"
46+
MODE5 = "Mode5"
47+
MODE6 = "Mode6"
48+
49+
"""
50+
Attributes:
51+
swagger_types (dict): The key is attribute name
52+
and the value is attribute type.
53+
attribute_map (dict): The key is attribute name
54+
and the value is json key in definition.
55+
"""
56+
swagger_types = {}
57+
58+
attribute_map = {}
59+
60+
def __init__(self): # noqa: E501
61+
"""MaxiCodeMode - a model defined in Swagger""" # noqa: E501
62+
self.discriminator = None
63+
64+
def to_dict(self):
65+
"""Returns the model properties as a dict"""
66+
result = {}
67+
68+
for attr, _ in six.iteritems(self.swagger_types):
69+
value = getattr(self, attr)
70+
if isinstance(value, list):
71+
result[attr] = list(map(lambda x: x.to_dict() if hasattr(x, "to_dict") else x, value))
72+
elif hasattr(value, "to_dict"):
73+
result[attr] = value.to_dict()
74+
elif isinstance(value, dict):
75+
result[attr] = dict(
76+
map(
77+
lambda item: (item[0], item[1].to_dict()) if hasattr(item[1], "to_dict") else item,
78+
value.items(),
79+
)
80+
)
81+
else:
82+
result[attr] = value
83+
if issubclass(MaxiCodeMode, dict):
84+
for key, value in self.items():
85+
result[key] = value
86+
87+
return result
88+
89+
def to_str(self):
90+
"""Returns the string representation of the model"""
91+
return pprint.pformat(self.to_dict())
92+
93+
def __repr__(self):
94+
"""For `print` and `pprint`"""
95+
return self.to_str()
96+
97+
def __eq__(self, other):
98+
"""Returns true if both objects are equal"""
99+
if not isinstance(other, MaxiCodeMode):
100+
return False
101+
102+
return self.__dict__ == other.__dict__
103+
104+
def __ne__(self, other):
105+
"""Returns true if both objects are not equal"""
106+
return not self == other

aspose_barcode_cloud/models/maxi_code_params.py

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -44,21 +44,21 @@ class MaxiCodeParams(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", "encode_mode": "int"}
47+
swagger_types = {"aspect_ratio": "float", "mode": "MaxiCodeMode"}
4848

49-
attribute_map = {"aspect_ratio": "AspectRatio", "encode_mode": "EncodeMode"}
49+
attribute_map = {"aspect_ratio": "AspectRatio", "mode": "Mode"}
5050

51-
def __init__(self, aspect_ratio=None, encode_mode=None): # noqa: E501
51+
def __init__(self, aspect_ratio=None, mode=None): # noqa: E501
5252
"""MaxiCodeParams - a model defined in Swagger""" # noqa: E501
5353

5454
self._aspect_ratio = None
55-
self._encode_mode = None
55+
self._mode = None
5656
self.discriminator = None
5757

5858
if aspect_ratio is not None:
5959
self.aspect_ratio = aspect_ratio
60-
if encode_mode is not None:
61-
self.encode_mode = encode_mode
60+
if mode is not None:
61+
self.mode = mode
6262

6363
@property
6464
def aspect_ratio(self):
@@ -84,27 +84,27 @@ def aspect_ratio(self, aspect_ratio):
8484
self._aspect_ratio = aspect_ratio
8585

8686
@property
87-
def encode_mode(self):
88-
"""Gets the encode_mode of this MaxiCodeParams. # noqa: E501
87+
def mode(self):
88+
"""Gets the mode of this MaxiCodeParams. # noqa: E501
8989
90-
MaxiCode encode mode. # noqa: E501
90+
Encoding mode for MaxiCode barcodes. # noqa: E501
9191
92-
:return: The encode_mode of this MaxiCodeParams. # noqa: E501
93-
:rtype: int
92+
:return: The mode of this MaxiCodeParams. # noqa: E501
93+
:rtype: MaxiCodeMode
9494
"""
95-
return self._encode_mode
95+
return self._mode
9696

97-
@encode_mode.setter
98-
def encode_mode(self, encode_mode):
99-
"""Sets the encode_mode of this MaxiCodeParams.
97+
@mode.setter
98+
def mode(self, mode):
99+
"""Sets the mode of this MaxiCodeParams.
100100
101-
MaxiCode encode mode. # noqa: E501
101+
Encoding mode for MaxiCode barcodes. # noqa: E501
102102
103-
:param encode_mode: The encode_mode of this MaxiCodeParams. # noqa: E501
104-
:type: int
103+
:param mode: The mode of this MaxiCodeParams. # noqa: E501
104+
:type: MaxiCodeMode
105105
"""
106106

107-
self._encode_mode = encode_mode
107+
self._mode = mode
108108

109109
def to_dict(self):
110110
"""Returns the model properties as a dict"""

docs/MaxiCodeMode.md

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

0 commit comments

Comments
 (0)