Skip to content

Commit

Permalink
fix(go-sdk): update client interface with store and model getter/sett…
Browse files Browse the repository at this point in the history
…er (#463)
  • Loading branch information
ewanharris authored Jan 8, 2025
2 parents 98dea80 + 5e1b727 commit 464e382
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions config/clients/go/template/client/client.mustache
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 464e382

Please sign in to comment.