Skip to content

Commit

Permalink
fix: update client interface with store and model getter/setter
Browse files Browse the repository at this point in the history
  • Loading branch information
ewanharris committed Jan 7, 2025
1 parent 3768fc2 commit 929fc88
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions client/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 929fc88

Please sign in to comment.