(userGuid string)
| 94 | } |
| 95 | |
| 96 | func (client *Client) DeleteUser(userGuid string) (User, error) { |
| 97 | deleteRequest, err := client.newRequest(requestOptions{ |
| 98 | RequestName: internal.DeleteUserRequest, |
| 99 | Header: http.Header{ |
| 100 | "Content-Type": {"application/json"}, |
| 101 | }, |
| 102 | URIParams: map[string]string{"user_guid": userGuid}, |
| 103 | }) |
| 104 | |
| 105 | if err != nil { |
| 106 | return User{}, err |
| 107 | } |
| 108 | |
| 109 | var deleteUserResponse newUserResponse |
| 110 | deleteResponse := Response{ |
| 111 | Result: &deleteUserResponse, |
| 112 | } |
| 113 | |
| 114 | err = client.connection.Make(deleteRequest, &deleteResponse) |
| 115 | if err != nil { |
| 116 | return User{}, err |
| 117 | } |
| 118 | |
| 119 | return User(deleteUserResponse), nil |
| 120 | } |
| 121 | |
| 122 | // ListUsers gets a list of users from UAA with the given username and (if provided) origin. |
| 123 | // NOTE: that this is a paginated response and we are only currently returning the first page |
nothing calls this directly
no test coverage detected