From 929fc88a055f2f43ecfc31e95e24c23856a6fd14 Mon Sep 17 00:00:00 2001 From: Ewan Harris Date: Tue, 7 Jan 2025 10:26:31 +0000 Subject: [PATCH] fix: update client interface with store and model getter/setter --- client/client.go | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/client/client.go b/client/client.go index 787f0b9..9557bad 100644 --- a/client/client.go +++ b/client/client.go @@ -437,6 +437,30 @@ type SdkClient interface { * @return *ClientWriteAssertionsResponse */ WriteAssertionsExecute(request SdkClientWriteAssertionsRequestInterface) (*ClientWriteAssertionsResponse, error) + + /* + * SetAuthorizationModelId allows setting the Authorization Model ID for an OpenFGAClient. + * @param string authorizationModelId - The Authorization Model ID to set. + */ + SetAuthorizationModelId(authorizationModelId string) error + + /* + * GetAuthorizationModelId retrieves the Authorization Model ID for an OpenFGAClient. + * @return string + */ + GetAuthorizationModelId() (string, error) + + /* + * SetStoreId allows setting the Store ID for an OpenFGAClient. + * @param string storeId - The Store ID to set. + */ + SetStoreId(storeId string) error + + /* + * GetStoreId retrieves the Store ID set in the OpenFGAClient. + * @return string + */ + GetStoreId() (string, error) } func (client *OpenFgaClient) SetAuthorizationModelId(authorizationModelId string) error {