From 6b38a68c7e3aa28685e48a216a7e83d7c4a752bd Mon Sep 17 00:00:00 2001 From: Ewan Harris Date: Wed, 1 May 2024 15:40:13 +0100 Subject: [PATCH] chore: update model id environment variable --- .../src/main/java/dev/openfga/sdk/example/Example1.java | 2 +- .../src/main/kotlin/dev/openfga/sdk/example/KotlinExample1.kt | 2 +- .../java/dev/openfga/sdk/example/Example1.java | 3 +-- 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/example/example1/src/main/java/dev/openfga/sdk/example/Example1.java b/example/example1/src/main/java/dev/openfga/sdk/example/Example1.java index d17c42a..efbb7ba 100644 --- a/example/example1/src/main/java/dev/openfga/sdk/example/Example1.java +++ b/example/example1/src/main/java/dev/openfga/sdk/example/Example1.java @@ -29,7 +29,7 @@ public void run(String apiUrl) throws Exception { .apiUrl(apiUrl) // required, e.g. https://api.fga.example .storeId(System.getenv("FGA_STORE_ID")) // not needed when calling `CreateStore` or `ListStores` .authorizationModelId( - System.getenv("FGA_AUTHORIZATION_MODEL_ID")) // Optional, can be overridden per request + System.getenv("FGA_MODEL_ID")) // Optional, can be overridden per request .credentials(credentials); var fgaClient = new OpenFgaClient(configuration); diff --git a/example/example1/src/main/kotlin/dev/openfga/sdk/example/KotlinExample1.kt b/example/example1/src/main/kotlin/dev/openfga/sdk/example/KotlinExample1.kt index 8dd22de..ee28726 100644 --- a/example/example1/src/main/kotlin/dev/openfga/sdk/example/KotlinExample1.kt +++ b/example/example1/src/main/kotlin/dev/openfga/sdk/example/KotlinExample1.kt @@ -30,7 +30,7 @@ internal class KotlinExample1 { .apiUrl(System.getenv("FGA_API_URL")) // required, e.g. https://api.fga.example .storeId(System.getenv("FGA_STORE_ID")) // not needed when calling `CreateStore` or `ListStores` .authorizationModelId( - System.getenv("FGA_AUTHORIZATION_MODEL_ID") + System.getenv("FGA_MODEL_ID") ) // Optional, can be overridden per request .credentials(credentials) val fgaClient = OpenFgaClient(configuration) diff --git a/src/test-integration/java/dev/openfga/sdk/example/Example1.java b/src/test-integration/java/dev/openfga/sdk/example/Example1.java index d17c42a..3d3d7af 100644 --- a/src/test-integration/java/dev/openfga/sdk/example/Example1.java +++ b/src/test-integration/java/dev/openfga/sdk/example/Example1.java @@ -28,8 +28,7 @@ public void run(String apiUrl) throws Exception { var configuration = new ClientConfiguration() .apiUrl(apiUrl) // required, e.g. https://api.fga.example .storeId(System.getenv("FGA_STORE_ID")) // not needed when calling `CreateStore` or `ListStores` - .authorizationModelId( - System.getenv("FGA_AUTHORIZATION_MODEL_ID")) // Optional, can be overridden per request + .authorizationModelId(System.getenv("FGA_MODEL_ID")) // Optional, can be overridden per request .credentials(credentials); var fgaClient = new OpenFgaClient(configuration);