Skip to content

Commit f29be0d

Browse files
author
GitHub Actions Bot
committed
Update python SDK from OpenAPI changes
1 parent 30e8219 commit f29be0d

File tree

276 files changed

+558
-520
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

276 files changed

+558
-520
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@ Permify is an open source authorization service for creating fine-grained and sc
33

44
This Python package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
55

6-
- API version: v0.9.1
6+
- API version: v0.9.9
77
- Package version: 1.0.0
8-
- Generator version: 7.7.0-SNAPSHOT
8+
- Generator version: 7.8.0-SNAPSHOT
99
- Build package: org.openapitools.codegen.languages.PythonClientCodegen
1010
For more information, please visit [https://github.com/Permify/permify/issues](https://github.com/Permify/permify/issues)
1111

@@ -19,9 +19,9 @@ Python 3.7+
1919
If the python package is hosted on a repository, you can install directly using:
2020

2121
```sh
22-
pip install git+https://github.com/permify/permify-python.git
22+
pip install git+https://github.com/Permify/permify-python.git
2323
```
24-
(you may need to run `pip` with root permission: `sudo pip install git+https://github.com/permify/permify-python.git`)
24+
(you may need to run `pip` with root permission: `sudo pip install git+https://github.com/Permify/permify-python.git`)
2525

2626
Then import the package:
2727
```python

git_push.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ if [ "$git_host" = "" ]; then
1414
fi
1515

1616
if [ "$git_user_id" = "" ]; then
17-
git_user_id="permify"
17+
git_user_id="Permify"
1818
echo "[INFO] No command line input provided. Set \$git_user_id to $git_user_id"
1919
fi
2020

permify/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
88
Permify is an open source authorization service for creating fine-grained and scalable authorization systems.
99
10-
The version of the OpenAPI document: v0.9.1
10+
The version of the OpenAPI document: v0.9.9
1111
Contact: hello@permify.co
1212
Generated by OpenAPI Generator (https://openapi-generator.tech)
1313

permify/api_client.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
66
Permify is an open source authorization service for creating fine-grained and scalable authorization systems.
77
8-
The version of the OpenAPI document: v0.9.1
8+
The version of the OpenAPI document: v0.9.9
99
Contact: hello@permify.co
1010
Generated by OpenAPI Generator (https://openapi-generator.tech)
1111
@@ -228,7 +228,7 @@ def param_serialize(
228228
body = self.sanitize_for_serialization(body)
229229

230230
# request url
231-
if _host is None:
231+
if _host is None or self.configuration.ignore_operation_servers:
232232
url = self.configuration.host + resource_path
233233
else:
234234
# use server/host defined in path or operation instead

permify/configuration.py

Lines changed: 18 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
66
Permify is an open source authorization service for creating fine-grained and scalable authorization systems.
77
8-
The version of the OpenAPI document: v0.9.1
8+
The version of the OpenAPI document: v0.9.9
99
Contact: hello@permify.co
1010
Generated by OpenAPI Generator (https://openapi-generator.tech)
1111
@@ -33,6 +33,9 @@ class Configuration:
3333
"""This class contains various settings of the API client.
3434
3535
:param host: Base url.
36+
:param ignore_operation_servers
37+
Boolean to ignore operation servers for the API client.
38+
Config will use `host` as the base url regardless of the operation servers.
3639
:param api_key: Dict to store API key(s).
3740
Each entry in the dict specifies an API key.
3841
The dict key is the name of the security scheme in the OAS specification.
@@ -55,6 +58,7 @@ class Configuration:
5558
values before.
5659
:param ssl_ca_cert: str - the path to a file of concatenated CA certificates
5760
in PEM format.
61+
:param retries: Number of retries for API requests.
5862
5963
:Example:
6064
@@ -86,7 +90,11 @@ def __init__(self, host=None,
8690
access_token=None,
8791
server_index=None, server_variables=None,
8892
server_operation_index=None, server_operation_variables=None,
93+
ignore_operation_servers=False,
8994
ssl_ca_cert=None,
95+
retries=None,
96+
*,
97+
debug: Optional[bool] = None
9098
) -> None:
9199
"""Constructor
92100
"""
@@ -101,6 +109,9 @@ def __init__(self, host=None,
101109
self.server_operation_variables = server_operation_variables or {}
102110
"""Default server variables
103111
"""
112+
self.ignore_operation_servers = ignore_operation_servers
113+
"""Ignore operation servers
114+
"""
104115
self.temp_folder_path = None
105116
"""Temp file folder for downloading files
106117
"""
@@ -144,7 +155,10 @@ def __init__(self, host=None,
144155
self.logger_file = None
145156
"""Debug file location
146157
"""
147-
self.debug = False
158+
if debug is not None:
159+
self.debug = debug
160+
else:
161+
self.__debug = False
148162
"""Debug switch
149163
"""
150164

@@ -187,7 +201,7 @@ def __init__(self, host=None,
187201
self.safe_chars_for_path_param = ''
188202
"""Safe chars for path_param
189203
"""
190-
self.retries = None
204+
self.retries = retries
191205
"""Adding retries to override urllib3 default value 3
192206
"""
193207
# Enable client side validation
@@ -399,7 +413,7 @@ def to_debug_report(self):
399413
return "Python SDK Debug Report:\n"\
400414
"OS: {env}\n"\
401415
"Python Version: {pyversion}\n"\
402-
"Version of the API: v0.9.1\n"\
416+
"Version of the API: v0.9.9\n"\
403417
"SDK Package Version: 1.0.0".\
404418
format(env=sys.platform, pyversion=sys.version)
405419

permify/exceptions.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
66
Permify is an open source authorization service for creating fine-grained and scalable authorization systems.
77
8-
The version of the OpenAPI document: v0.9.1
8+
The version of the OpenAPI document: v0.9.9
99
Contact: hello@permify.co
1010
Generated by OpenAPI Generator (https://openapi-generator.tech)
1111

permify/models/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
77
Permify is an open source authorization service for creating fine-grained and scalable authorization systems.
88
9-
The version of the OpenAPI document: v0.9.1
9+
The version of the OpenAPI document: v0.9.9
1010
Contact: hello@permify.co
1111
Generated by OpenAPI Generator (https://openapi-generator.tech)
1212

permify/models/abstract_type.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
66
Permify is an open source authorization service for creating fine-grained and scalable authorization systems.
77
8-
The version of the OpenAPI document: v0.9.1
8+
The version of the OpenAPI document: v0.9.9
99
Contact: hello@permify.co
1010
Generated by OpenAPI Generator (https://openapi-generator.tech)
1111

permify/models/any.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
66
Permify is an open source authorization service for creating fine-grained and scalable authorization systems.
77
8-
The version of the OpenAPI document: v0.9.1
8+
The version of the OpenAPI document: v0.9.9
99
Contact: hello@permify.co
1010
Generated by OpenAPI Generator (https://openapi-generator.tech)
1111

permify/models/argument.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
66
Permify is an open source authorization service for creating fine-grained and scalable authorization systems.
77
8-
The version of the OpenAPI document: v0.9.1
8+
The version of the OpenAPI document: v0.9.9
99
Contact: hello@permify.co
1010
Generated by OpenAPI Generator (https://openapi-generator.tech)
1111

permify/models/attribute.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
66
Permify is an open source authorization service for creating fine-grained and scalable authorization systems.
77
8-
The version of the OpenAPI document: v0.9.1
8+
The version of the OpenAPI document: v0.9.9
99
Contact: hello@permify.co
1010
Generated by OpenAPI Generator (https://openapi-generator.tech)
1111

permify/models/attribute_definition.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
66
Permify is an open source authorization service for creating fine-grained and scalable authorization systems.
77
8-
The version of the OpenAPI document: v0.9.1
8+
The version of the OpenAPI document: v0.9.9
99
Contact: hello@permify.co
1010
Generated by OpenAPI Generator (https://openapi-generator.tech)
1111

permify/models/attribute_filter.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
66
Permify is an open source authorization service for creating fine-grained and scalable authorization systems.
77
8-
The version of the OpenAPI document: v0.9.1
8+
The version of the OpenAPI document: v0.9.9
99
Contact: hello@permify.co
1010
Generated by OpenAPI Generator (https://openapi-generator.tech)
1111

permify/models/attribute_read_request_metadata.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
66
Permify is an open source authorization service for creating fine-grained and scalable authorization systems.
77
8-
The version of the OpenAPI document: v0.9.1
8+
The version of the OpenAPI document: v0.9.9
99
Contact: hello@permify.co
1010
Generated by OpenAPI Generator (https://openapi-generator.tech)
1111

permify/models/attribute_read_response.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
66
Permify is an open source authorization service for creating fine-grained and scalable authorization systems.
77
8-
The version of the OpenAPI document: v0.9.1
8+
The version of the OpenAPI document: v0.9.9
99
Contact: hello@permify.co
1010
Generated by OpenAPI Generator (https://openapi-generator.tech)
1111

permify/models/attribute_type.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
66
Permify is an open source authorization service for creating fine-grained and scalable authorization systems.
77
8-
The version of the OpenAPI document: v0.9.1
8+
The version of the OpenAPI document: v0.9.9
99
Contact: hello@permify.co
1010
Generated by OpenAPI Generator (https://openapi-generator.tech)
1111

permify/models/bundle_delete_request.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
66
Permify is an open source authorization service for creating fine-grained and scalable authorization systems.
77
8-
The version of the OpenAPI document: v0.9.1
8+
The version of the OpenAPI document: v0.9.9
99
Contact: hello@permify.co
1010
Generated by OpenAPI Generator (https://openapi-generator.tech)
1111

permify/models/bundle_delete_response.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
66
Permify is an open source authorization service for creating fine-grained and scalable authorization systems.
77
8-
The version of the OpenAPI document: v0.9.1
8+
The version of the OpenAPI document: v0.9.9
99
Contact: hello@permify.co
1010
Generated by OpenAPI Generator (https://openapi-generator.tech)
1111

permify/models/bundle_read_request.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
66
Permify is an open source authorization service for creating fine-grained and scalable authorization systems.
77
8-
The version of the OpenAPI document: v0.9.1
8+
The version of the OpenAPI document: v0.9.9
99
Contact: hello@permify.co
1010
Generated by OpenAPI Generator (https://openapi-generator.tech)
1111

permify/models/bundle_read_response.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
66
Permify is an open source authorization service for creating fine-grained and scalable authorization systems.
77
8-
The version of the OpenAPI document: v0.9.1
8+
The version of the OpenAPI document: v0.9.9
99
Contact: hello@permify.co
1010
Generated by OpenAPI Generator (https://openapi-generator.tech)
1111

permify/models/bundle_run_request.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
66
Permify is an open source authorization service for creating fine-grained and scalable authorization systems.
77
8-
The version of the OpenAPI document: v0.9.1
8+
The version of the OpenAPI document: v0.9.9
99
Contact: hello@permify.co
1010
Generated by OpenAPI Generator (https://openapi-generator.tech)
1111

permify/models/bundle_run_response.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
66
Permify is an open source authorization service for creating fine-grained and scalable authorization systems.
77
8-
The version of the OpenAPI document: v0.9.1
8+
The version of the OpenAPI document: v0.9.9
99
Contact: hello@permify.co
1010
Generated by OpenAPI Generator (https://openapi-generator.tech)
1111

permify/models/bundle_write_request.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
66
Permify is an open source authorization service for creating fine-grained and scalable authorization systems.
77
8-
The version of the OpenAPI document: v0.9.1
8+
The version of the OpenAPI document: v0.9.9
99
Contact: hello@permify.co
1010
Generated by OpenAPI Generator (https://openapi-generator.tech)
1111

permify/models/bundle_write_response.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
66
Permify is an open source authorization service for creating fine-grained and scalable authorization systems.
77
8-
The version of the OpenAPI document: v0.9.1
8+
The version of the OpenAPI document: v0.9.9
99
Contact: hello@permify.co
1010
Generated by OpenAPI Generator (https://openapi-generator.tech)
1111

permify/models/check_result.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
66
Permify is an open source authorization service for creating fine-grained and scalable authorization systems.
77
8-
The version of the OpenAPI document: v0.9.1
8+
The version of the OpenAPI document: v0.9.9
99
Contact: hello@permify.co
1010
Generated by OpenAPI Generator (https://openapi-generator.tech)
1111

permify/models/checked_expr.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
66
Permify is an open source authorization service for creating fine-grained and scalable authorization systems.
77
8-
The version of the OpenAPI document: v0.9.1
8+
The version of the OpenAPI document: v0.9.9
99
Contact: hello@permify.co
1010
Generated by OpenAPI Generator (https://openapi-generator.tech)
1111

permify/models/child.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
66
Permify is an open source authorization service for creating fine-grained and scalable authorization systems.
77
8-
The version of the OpenAPI document: v0.9.1
8+
The version of the OpenAPI document: v0.9.9
99
Contact: hello@permify.co
1010
Generated by OpenAPI Generator (https://openapi-generator.tech)
1111

permify/models/comprehension.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
66
Permify is an open source authorization service for creating fine-grained and scalable authorization systems.
77
8-
The version of the OpenAPI document: v0.9.1
8+
The version of the OpenAPI document: v0.9.9
99
Contact: hello@permify.co
1010
Generated by OpenAPI Generator (https://openapi-generator.tech)
1111

permify/models/computed_attribute.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
66
Permify is an open source authorization service for creating fine-grained and scalable authorization systems.
77
8-
The version of the OpenAPI document: v0.9.1
8+
The version of the OpenAPI document: v0.9.9
99
Contact: hello@permify.co
1010
Generated by OpenAPI Generator (https://openapi-generator.tech)
1111

permify/models/computed_user_set.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
66
Permify is an open source authorization service for creating fine-grained and scalable authorization systems.
77
8-
The version of the OpenAPI document: v0.9.1
8+
The version of the OpenAPI document: v0.9.9
99
Contact: hello@permify.co
1010
Generated by OpenAPI Generator (https://openapi-generator.tech)
1111

permify/models/constant.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
66
Permify is an open source authorization service for creating fine-grained and scalable authorization systems.
77
8-
The version of the OpenAPI document: v0.9.1
8+
The version of the OpenAPI document: v0.9.9
99
Contact: hello@permify.co
1010
Generated by OpenAPI Generator (https://openapi-generator.tech)
1111

permify/models/context.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
66
Permify is an open source authorization service for creating fine-grained and scalable authorization systems.
77
8-
The version of the OpenAPI document: v0.9.1
8+
The version of the OpenAPI document: v0.9.9
99
Contact: hello@permify.co
1010
Generated by OpenAPI Generator (https://openapi-generator.tech)
1111

permify/models/context_attribute.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
66
Permify is an open source authorization service for creating fine-grained and scalable authorization systems.
77
8-
The version of the OpenAPI document: v0.9.1
8+
The version of the OpenAPI document: v0.9.9
99
Contact: hello@permify.co
1010
Generated by OpenAPI Generator (https://openapi-generator.tech)
1111

permify/models/create_list.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
66
Permify is an open source authorization service for creating fine-grained and scalable authorization systems.
77
8-
The version of the OpenAPI document: v0.9.1
8+
The version of the OpenAPI document: v0.9.9
99
Contact: hello@permify.co
1010
Generated by OpenAPI Generator (https://openapi-generator.tech)
1111

0 commit comments

Comments
 (0)