Skip to content

Commit

Permalink
chore: Change method name frome DeleteUser() -> RemoveUser()
Browse files Browse the repository at this point in the history
Signed-off-by: Karanjot Singh <[email protected]>
  • Loading branch information
0xquark committed Feb 19, 2025
1 parent 88dba94 commit 9dee152
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions atlan/assets/user_client.go
Original file line number Diff line number Diff line change
Expand Up @@ -464,7 +464,7 @@ func ParseAtlanUser(data interface{}) (AtlanUser, error) {
return user, nil
}

// DeleteUser removes a user and transfers their assets to another user.
// RemoveUser removes a user and transfers their assets to another user.
// Params:
// - userName: The username of the user to be removed.
// - transferToUserName: The username of the user to transfer assets to.
Expand All @@ -473,7 +473,7 @@ func ParseAtlanUser(data interface{}) (AtlanUser, error) {
// Returns:
// - WorkflowResponse: Response of the workflow execution.
// - Error: If any API issue occurs.
func (uc *UserClient) DeleteUser(userName, transferToUserName string, wfCreatorUserName *string) (*structs.WorkflowResponse, error) {
func (uc *UserClient) RemoveUser(userName, transferToUserName string, wfCreatorUserName *string) (*structs.WorkflowResponse, error) {
// Fetch user details using userName
userDetails, err := uc.GetByUsername(userName)
if err != nil {
Expand Down
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ func main() {
ctx := assets.NewContext()
ctx.EnableLogging("debug")

response, err := ctx.UserClient.DeleteUser("singhkaranjot99", "karanjot.singh", nil)
response, err := ctx.UserClient.RemoveUser("singhkaranjot99", "karanjot.singh", nil)
if err != nil {
log.Fatalf("Error deleting user: %v", err)
}
Expand Down

0 comments on commit 9dee152

Please sign in to comment.