Skip to content

Commit 69979bf

Browse files
committed
Sync upstream changes
Signed-off-by: Abhi Agarwal <abhiaagarwal01@gmail.com>
1 parent 278ec03 commit 69979bf

File tree

6 files changed

+702
-716
lines changed

6 files changed

+702
-716
lines changed

README.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1060,8 +1060,7 @@ List the users who have a certain relation to a particular type.
10601060
```python
10611061
from openfga_sdk import OpenFgaClient
10621062
from openfga_sdk.models.fga_object import FgaObject
1063-
from openfga_sdk.client.models import ClientTuple
1064-
from openfga_sdk.client.models.list_users_request import ClientListUsersRequest
1063+
from openfga_sdk.client.models import ClientListUsersRequest, ClientTuple
10651064

10661065
configuration = ClientConfiguration(
10671066
api_url=FGA_API_URL,

docs/OpenFgaApi.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -643,11 +643,10 @@ async with openfga_sdk.ApiClient(configuration) as api_client:
643643
api_instance = openfga_sdk.OpenFgaApi(api_client)
644644
page_size = 56 # int | (optional)
645645
continuation_token = 'continuation_token_example' # str | (optional)
646-
name = 'name_example' # str | The name parameter instructs the API to only include results that match that name.Multiple results may be returned. Only exact matches will be returned; substring matches and regexes will not be evaluated (optional)
647646

648647
try:
649648
# List all stores
650-
api_response = await api_instance.api_instance.list_stores(page_size=page_size, continuation_token=continuation_token, name=name)
649+
api_response = await api_instance.api_instance.list_stores(page_size=page_size, continuation_token=continuation_token)
651650
pprint(api_response)
652651
except ApiException as e:
653652
print("Exception when calling OpenFgaApi->list_stores: %s\n" % e)
@@ -661,7 +660,6 @@ Name | Type | Description | Notes
661660
------------- | ------------- | ------------- | -------------
662661
**page_size** | **int**| | [optional]
663662
**continuation_token** | **str**| | [optional]
664-
**name** | **str**| The name parameter instructs the API to only include results that match that name.Multiple results may be returned. Only exact matches will be returned; substring matches and regexes will not be evaluated | [optional]
665663

666664
### Return type
667665

openfga_sdk/api/open_fga_api.py

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1255,8 +1255,6 @@ async def list_stores(self, **kwargs):
12551255
:type page_size: int, optional
12561256
:param continuation_token:(optional)
12571257
:type continuation_token: str, optional
1258-
:param name: The name parameter instructs the API to only include results that match that name.Multiple results may be returned. Only exact matches will be returned; substring matches and regexes will not be evaluated(optional)
1259-
:type name: str, optional
12601258
:param async_req: Whether to execute the request asynchronously.
12611259
:type async_req: bool, optional
12621260
:param _preload_content: if False, the urllib3.HTTPResponse object will
@@ -1286,8 +1284,6 @@ async def list_stores_with_http_info(self, **kwargs):
12861284
:type page_size: int, optional
12871285
:param continuation_token:(optional)
12881286
:type continuation_token: str, optional
1289-
:param name: The name parameter instructs the API to only include results that match that name.Multiple results may be returned. Only exact matches will be returned; substring matches and regexes will not be evaluated(optional)
1290-
:type name: str, optional
12911287
:param async_req: Whether to execute the request asynchronously.
12921288
:type async_req: bool, optional
12931289
:param _return_http_data_only: response data without head status code
@@ -1315,7 +1311,7 @@ async def list_stores_with_http_info(self, **kwargs):
13151311

13161312
local_var_params = locals()
13171313

1318-
all_params = ["page_size", "continuation_token", "name"]
1314+
all_params = ["page_size", "continuation_token"]
13191315
all_params.extend(
13201316
[
13211317
"async_req",
@@ -1351,8 +1347,6 @@ async def list_stores_with_http_info(self, **kwargs):
13511347
query_params.append(
13521348
("continuation_token", local_var_params["continuation_token"])
13531349
)
1354-
if local_var_params.get("name") is not None:
1355-
query_params.append(("name", local_var_params["name"]))
13561350

13571351
header_params = dict(local_var_params.get("_headers", {}))
13581352

openfga_sdk/sync/open_fga_api.py

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1253,8 +1253,6 @@ def list_stores(self, **kwargs):
12531253
:type page_size: int, optional
12541254
:param continuation_token:(optional)
12551255
:type continuation_token: str, optional
1256-
:param name: The name parameter instructs the API to only include results that match that name.Multiple results may be returned. Only exact matches will be returned; substring matches and regexes will not be evaluated(optional)
1257-
:type name: str, optional
12581256
:param async_req: Whether to execute the request asynchronously.
12591257
:type async_req: bool, optional
12601258
:param _preload_content: if False, the urllib3.HTTPResponse object will
@@ -1284,8 +1282,6 @@ def list_stores_with_http_info(self, **kwargs):
12841282
:type page_size: int, optional
12851283
:param continuation_token:(optional)
12861284
:type continuation_token: str, optional
1287-
:param name: The name parameter instructs the API to only include results that match that name.Multiple results may be returned. Only exact matches will be returned; substring matches and regexes will not be evaluated(optional)
1288-
:type name: str, optional
12891285
:param async_req: Whether to execute the request asynchronously.
12901286
:type async_req: bool, optional
12911287
:param _return_http_data_only: response data without head status code
@@ -1313,7 +1309,7 @@ def list_stores_with_http_info(self, **kwargs):
13131309

13141310
local_var_params = locals()
13151311

1316-
all_params = ["page_size", "continuation_token", "name"]
1312+
all_params = ["page_size", "continuation_token"]
13171313
all_params.extend(
13181314
[
13191315
"async_req",
@@ -1349,8 +1345,6 @@ def list_stores_with_http_info(self, **kwargs):
13491345
query_params.append(
13501346
("continuation_token", local_var_params["continuation_token"])
13511347
)
1352-
if local_var_params.get("name") is not None:
1353-
query_params.append(("name", local_var_params["name"]))
13541348

13551349
header_params = dict(local_var_params.get("_headers", {}))
13561350

pyproject.toml

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,16 @@
1+
#
2+
# Python SDK for OpenFGA
3+
#
4+
# API version: 1.x
5+
# Website: https://openfga.dev
6+
# Documentation: https://openfga.dev/docs
7+
# Support: https://openfga.dev/community
8+
# License: [Apache-2.0](https://github.com/openfga/python-sdk/blob/main/LICENSE)
9+
#
10+
111
[project]
212
name = "openfga-sdk"
3-
version = "0.9.4"
13+
version = "0.9.5"
414
description="A high performance and flexible authorization/permission engine built for developers and inspired by Google Zanzibar."
515
authors = [
616
{ name = "OpenFGA (https://openfga.dev)", email = "community@openfga.dev"}
@@ -48,6 +58,7 @@ dev = [
4858
requires = ["hatchling"]
4959
build-backend = "hatchling.build"
5060

61+
5162
[tool.ruff]
5263
exclude = [
5364
".bzr",
@@ -129,7 +140,7 @@ asyncio_default_fixture_loop_scope = "function"
129140
python_version = "3.10"
130141
packages = "openfga_sdk"
131142
exclude = [
132-
"openfa_sdk/models",
143+
"openfga_sdk/models",
133144
]
134145
#warn_return_any = "True"
135146
#warn_unused_configs = "True"

0 commit comments

Comments
 (0)