From 2adebcc8c8bcdd1ad7b75b92267d574eec8e93cc Mon Sep 17 00:00:00 2001 From: Ewan Harris Date: Tue, 7 Jan 2025 17:19:31 +0000 Subject: [PATCH] fix: update client interface with store and model getter/setter (#155) --- 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 {