@@ -130,10 +130,10 @@ from openfga_sdk.client import OpenFgaClient
130130
131131async def main ():
132132 configuration = openfga_sdk.ClientConfiguration(
133- api_scheme = OPENFGA_API_SCHEME , # optional, defaults to "https"
134- api_host = OPENFGA_API_HOST , # required, define without the scheme (e.g. api.fga.example instead of https://api.fga.example)
135- store_id = OPENFGA_STORE_ID , # optional, not needed when calling `CreateStore` or `ListStores`
136- authorization_model_id = OPENFGA_AUTHORIZATION_MODEL_ID , # Optional, can be overridden per request
133+ api_scheme = FGA_API_SCHEME , # optional, defaults to "https"
134+ api_host = FGA_API_HOST , # required, define without the scheme (e.g. api.fga.example instead of https://api.fga.example)
135+ store_id = FGA_STORE_ID , # optional, not needed when calling `CreateStore` or `ListStores`
136+ authorization_model_id = FGA_AUTHORIZATION_MODEL_ID , # Optional, can be overridden per request
137137 )
138138 # Enter a context with an instance of the OpenFgaClient
139139 async with OpenFgaClient(configuration) as fga_client:
@@ -152,14 +152,14 @@ from openfga_sdk.credentials import Credentials, CredentialConfiguration
152152
153153async def main ():
154154 configuration = openfga_sdk.ClientConfiguration(
155- api_scheme = OPENFGA_API_SCHEME , # optional, defaults to "https"
156- api_host = OPENFGA_API_HOST , # required, define without the scheme (e.g. api.fga.example instead of https://api.fga.example)
157- store_id = OPENFGA_STORE_ID , # optional, not needed when calling `CreateStore` or `ListStores`
158- authorization_model_id = OPENFGA_AUTHORIZATION_MODEL_ID , # Optional, can be overridden per request
155+ api_scheme = FGA_API_SCHEME , # optional, defaults to "https"
156+ api_host = FGA_API_HOST , # required, define without the scheme (e.g. api.fga.example instead of https://api.fga.example)
157+ store_id = FGA_STORE_ID , # optional, not needed when calling `CreateStore` or `ListStores`
158+ authorization_model_id = FGA_AUTHORIZATION_MODEL_ID , # Optional, can be overridden per request
159159 credentials = Credentials(
160160 method = ' api_token' ,
161- configuration = CredentialConfiguration(
162- api_token = OPENFGA_API_TOKEN ,
161+ configuration = CredentialConfiguration(
162+ api_token = FGA_API_TOKEN ,
163163 )
164164 )
165165 )
@@ -180,17 +180,17 @@ from openfga_sdk.credentials import Credentials, CredentialConfiguration
180180
181181async def main ():
182182 configuration = openfga_sdk.ClientConfiguration(
183- api_scheme = OPENFGA_API_SCHEME , # optional, defaults to "https"
184- api_host = OPENFGA_API_HOST , # required, define without the scheme (e.g. api.fga.example instead of https://api.fga.example)
185- store_id = OPENFGA_STORE_ID , # optional, not needed when calling `CreateStore` or `ListStores`
186- authorization_model_id = OPENFGA_AUTHORIZATION_MODEL_ID , # Optional, can be overridden per request
183+ api_scheme = FGA_API_SCHEME , # optional, defaults to "https"
184+ api_host = FGA_API_HOST , # required, define without the scheme (e.g. api.fga.example instead of https://api.fga.example)
185+ store_id = FGA_STORE_ID , # optional, not needed when calling `CreateStore` or `ListStores`
186+ authorization_model_id = FGA_AUTHORIZATION_MODEL_ID , # Optional, can be overridden per request
187187 credentials = Credentials(
188- method = ' client_credentials' ,
189- configuration = CredentialConfiguration(
190- api_issuer = OPENFGA_API_TOKEN_ISSUER ,
191- api_audience = OPENFGA_API_AUDIENCE ,
192- client_id = OPENFGA_CLIENT_ID ,
193- client_secret = OPENFGA_CLIENT_SECRET ,
188+ method = ' client_credentials' ,
189+ configuration = CredentialConfiguration(
190+ api_issuer = FGA_API_TOKEN_ISSUER ,
191+ api_audience = FGA_API_AUDIENCE ,
192+ client_id = FGA_CLIENT_ID ,
193+ client_secret = FGA_CLIENT_SECRET ,
194194 )
195195 )
196196 )
@@ -214,10 +214,10 @@ from openfga_sdk.sync import OpenFgaClient
214214
215215def main ():
216216 configuration = openfga_sdk.ClientConfiguration(
217- api_scheme = OPENFGA_API_SCHEME , # optional, defaults to "https"
218- api_host = OPENFGA_API_HOST , # required, define without the scheme (e.g. api.fga.example instead of https://api.fga.example)
219- store_id = OPENFGA_STORE_ID , # optional, not needed when calling `CreateStore` or `ListStores`
220- authorization_model_id = OPENFGA_AUTHORIZATION_MODEL_ID , # optional, can be overridden per request
217+ api_scheme = FGA_API_SCHEME , # optional, defaults to "https"
218+ api_host = FGA_API_HOST , # required, define without the scheme (e.g. api.fga.example instead of https://api.fga.example)
219+ store_id = FGA_STORE_ID , # optional, not needed when calling `CreateStore` or `ListStores`
220+ authorization_model_id = FGA_AUTHORIZATION_MODEL_ID , # optional, can be overridden per request
221221 )
222222 # Enter a context with an instance of the OpenFgaClient
223223 with OpenFgaClient(configuration) as fga_client:
0 commit comments