From 5e1b72776b005bda60be72a7b908927f79b984cb Mon Sep 17 00:00:00 2001 From: Ewan Harris Date: Wed, 8 Jan 2025 09:38:51 +0000 Subject: [PATCH] fix(go-sdk): update client interface with store and model getter/setter --- .../go/template/client/client.mustache | 21 +++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/config/clients/go/template/client/client.mustache b/config/clients/go/template/client/client.mustache index 2fdf56ac..8f81dc8a 100644 --- a/config/clients/go/template/client/client.mustache +++ b/config/clients/go/template/client/client.mustache @@ -428,6 +428,27 @@ 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 {