Skip to content

Commit d310859

Browse files
committed
fix: Fix typo for retry parameters
1 parent 9a33c4a commit d310859

3 files changed

Lines changed: 37 additions & 32 deletions

File tree

openfga_sdk/api/open_fga_api.py

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ async def check_with_http_info(self, body, **kwargs):
121121
"_request_auth",
122122
"_content_type",
123123
"_headers",
124-
"_retry_parms",
124+
"_retry_params",
125125
]
126126
)
127127

@@ -294,7 +294,7 @@ async def create_store_with_http_info(self, body, **kwargs):
294294
"_request_auth",
295295
"_content_type",
296296
"_headers",
297-
"_retry_parms",
297+
"_retry_params",
298298
]
299299
)
300300

@@ -450,7 +450,7 @@ async def delete_store_with_http_info(self, **kwargs):
450450
"_request_auth",
451451
"_content_type",
452452
"_headers",
453-
"_retry_parms",
453+
"_retry_params",
454454
]
455455
)
456456

@@ -596,7 +596,7 @@ async def expand_with_http_info(self, body, **kwargs):
596596
"_request_auth",
597597
"_content_type",
598598
"_headers",
599-
"_retry_parms",
599+
"_retry_params",
600600
]
601601
)
602602

@@ -765,7 +765,7 @@ async def get_store_with_http_info(self, **kwargs):
765765
"_request_auth",
766766
"_content_type",
767767
"_headers",
768-
"_retry_parms",
768+
"_retry_params",
769769
]
770770
)
771771

@@ -919,7 +919,7 @@ async def list_objects_with_http_info(self, body, **kwargs):
919919
"_request_auth",
920920
"_content_type",
921921
"_headers",
922-
"_retry_parms",
922+
"_retry_params",
923923
]
924924
)
925925

@@ -1097,7 +1097,7 @@ async def list_stores_with_http_info(self, **kwargs):
10971097
"_request_auth",
10981098
"_content_type",
10991099
"_headers",
1100-
"_retry_parms",
1100+
"_retry_params",
11011101
]
11021102
)
11031103

@@ -1251,7 +1251,7 @@ async def list_users_with_http_info(self, body, **kwargs):
12511251
"_request_auth",
12521252
"_content_type",
12531253
"_headers",
1254-
"_retry_parms",
1254+
"_retry_params",
12551255
]
12561256
)
12571257

@@ -1425,7 +1425,7 @@ async def read_with_http_info(self, body, **kwargs):
14251425
"_request_auth",
14261426
"_content_type",
14271427
"_headers",
1428-
"_retry_parms",
1428+
"_retry_params",
14291429
]
14301430
)
14311431

@@ -1600,7 +1600,7 @@ async def read_assertions_with_http_info(self, authorization_model_id, **kwargs)
16001600
"_request_auth",
16011601
"_content_type",
16021602
"_headers",
1603-
"_retry_parms",
1603+
"_retry_params",
16041604
]
16051605
)
16061606

@@ -1769,7 +1769,7 @@ async def read_authorization_model_with_http_info(self, id, **kwargs):
17691769
"_request_auth",
17701770
"_content_type",
17711771
"_headers",
1772-
"_retry_parms",
1772+
"_retry_params",
17731773
]
17741774
)
17751775

@@ -1940,7 +1940,7 @@ async def read_authorization_models_with_http_info(self, **kwargs):
19401940
"_request_auth",
19411941
"_content_type",
19421942
"_headers",
1943-
"_retry_parms",
1943+
"_retry_params",
19441944
]
19451945
)
19461946

@@ -2108,7 +2108,7 @@ async def read_changes_with_http_info(self, **kwargs):
21082108
"_request_auth",
21092109
"_content_type",
21102110
"_headers",
2111-
"_retry_parms",
2111+
"_retry_params",
21122112
]
21132113
)
21142114

@@ -2270,7 +2270,7 @@ async def write_with_http_info(self, body, **kwargs):
22702270
"_request_auth",
22712271
"_content_type",
22722272
"_headers",
2273-
"_retry_parms",
2273+
"_retry_params",
22742274
]
22752275
)
22762276

@@ -2451,7 +2451,7 @@ async def write_assertions_with_http_info(
24512451
"_request_auth",
24522452
"_content_type",
24532453
"_headers",
2454-
"_retry_parms",
2454+
"_retry_params",
24552455
]
24562456
)
24572457

@@ -2632,7 +2632,7 @@ async def write_authorization_model_with_http_info(self, body, **kwargs):
26322632
"_request_auth",
26332633
"_content_type",
26342634
"_headers",
2635-
"_retry_parms",
2635+
"_retry_params",
26362636
]
26372637
)
26382638

openfga_sdk/sync/open_fga_api.py

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ def check_with_http_info(self, body, **kwargs):
119119
"_request_auth",
120120
"_content_type",
121121
"_headers",
122-
"_retry_parms",
122+
"_retry_params",
123123
]
124124
)
125125

@@ -292,7 +292,7 @@ def create_store_with_http_info(self, body, **kwargs):
292292
"_request_auth",
293293
"_content_type",
294294
"_headers",
295-
"_retry_parms",
295+
"_retry_params",
296296
]
297297
)
298298

@@ -448,7 +448,7 @@ def delete_store_with_http_info(self, **kwargs):
448448
"_request_auth",
449449
"_content_type",
450450
"_headers",
451-
"_retry_parms",
451+
"_retry_params",
452452
]
453453
)
454454

@@ -594,7 +594,7 @@ def expand_with_http_info(self, body, **kwargs):
594594
"_request_auth",
595595
"_content_type",
596596
"_headers",
597-
"_retry_parms",
597+
"_retry_params",
598598
]
599599
)
600600

@@ -763,7 +763,7 @@ def get_store_with_http_info(self, **kwargs):
763763
"_request_auth",
764764
"_content_type",
765765
"_headers",
766-
"_retry_parms",
766+
"_retry_params",
767767
]
768768
)
769769

@@ -917,7 +917,7 @@ def list_objects_with_http_info(self, body, **kwargs):
917917
"_request_auth",
918918
"_content_type",
919919
"_headers",
920-
"_retry_parms",
920+
"_retry_params",
921921
]
922922
)
923923

@@ -1095,7 +1095,7 @@ def list_stores_with_http_info(self, **kwargs):
10951095
"_request_auth",
10961096
"_content_type",
10971097
"_headers",
1098-
"_retry_parms",
1098+
"_retry_params",
10991099
]
11001100
)
11011101

@@ -1249,7 +1249,7 @@ def list_users_with_http_info(self, body, **kwargs):
12491249
"_request_auth",
12501250
"_content_type",
12511251
"_headers",
1252-
"_retry_parms",
1252+
"_retry_params",
12531253
]
12541254
)
12551255

@@ -1423,7 +1423,7 @@ def read_with_http_info(self, body, **kwargs):
14231423
"_request_auth",
14241424
"_content_type",
14251425
"_headers",
1426-
"_retry_parms",
1426+
"_retry_params",
14271427
]
14281428
)
14291429

@@ -1596,7 +1596,7 @@ def read_assertions_with_http_info(self, authorization_model_id, **kwargs):
15961596
"_request_auth",
15971597
"_content_type",
15981598
"_headers",
1599-
"_retry_parms",
1599+
"_retry_params",
16001600
]
16011601
)
16021602

@@ -1765,7 +1765,7 @@ def read_authorization_model_with_http_info(self, id, **kwargs):
17651765
"_request_auth",
17661766
"_content_type",
17671767
"_headers",
1768-
"_retry_parms",
1768+
"_retry_params",
17691769
]
17701770
)
17711771

@@ -1936,7 +1936,7 @@ def read_authorization_models_with_http_info(self, **kwargs):
19361936
"_request_auth",
19371937
"_content_type",
19381938
"_headers",
1939-
"_retry_parms",
1939+
"_retry_params",
19401940
]
19411941
)
19421942

@@ -2104,7 +2104,7 @@ def read_changes_with_http_info(self, **kwargs):
21042104
"_request_auth",
21052105
"_content_type",
21062106
"_headers",
2107-
"_retry_parms",
2107+
"_retry_params",
21082108
]
21092109
)
21102110

@@ -2266,7 +2266,7 @@ def write_with_http_info(self, body, **kwargs):
22662266
"_request_auth",
22672267
"_content_type",
22682268
"_headers",
2269-
"_retry_parms",
2269+
"_retry_params",
22702270
]
22712271
)
22722272

@@ -2445,7 +2445,7 @@ def write_assertions_with_http_info(self, authorization_model_id, body, **kwargs
24452445
"_request_auth",
24462446
"_content_type",
24472447
"_headers",
2448-
"_retry_parms",
2448+
"_retry_params",
24492449
]
24502450
)
24512451

@@ -2626,7 +2626,7 @@ def write_authorization_model_with_http_info(self, body, **kwargs):
26262626
"_request_auth",
26272627
"_content_type",
26282628
"_headers",
2629-
"_retry_parms",
2629+
"_retry_params",
26302630
]
26312631
)
26322632

test/client/client_test.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
3030
from openfga_sdk.client.models.write_request import ClientWriteRequest
3131
from openfga_sdk.client.models.write_single_response import ClientWriteSingleResponse
3232
from openfga_sdk.client.models.write_transaction_opts import WriteTransactionOpts
33+
from openfga_sdk.configuration import RetryParams
3334
from openfga_sdk.exceptions import (
3435
FgaValidationException,
3536
UnauthorizedException,
@@ -713,6 +714,10 @@ async def test_read(self, mock_request):
713714
"page_size": 50,
714715
"continuation_token": "eyJwayI6IkxBVEVTVF9OU0NPTkZJR19hdXRoMHN0b3JlIiwic2siOiIxem1qbXF3MWZLZExTcUoyN01MdTdqTjh0cWgifQ==",
715716
"consistency": ConsistencyPreference.MINIMIZE_LATENCY,
717+
"retry_params": RetryParams(
718+
max_retry=3,
719+
min_wait_in_ms=1000
720+
)
716721
},
717722
)
718723
self.assertIsInstance(api_response, ReadResponse)

0 commit comments

Comments
 (0)