(username, spaceGUID string, role models.Role)
| 246 | } |
| 247 | |
| 248 | func (repo CloudControllerUserRepository) UnsetSpaceRoleByUsername(username, spaceGUID string, role models.Role) error { |
| 249 | rolePath := spaceRoleToPathMap[role] |
| 250 | path := fmt.Sprintf("%s/v2/spaces/%s/%s", repo.config.APIEndpoint(), spaceGUID, rolePath) |
| 251 | |
| 252 | return repo.callAPI("DELETE", path, usernamePayload(username)) |
| 253 | } |
| 254 | |
| 255 | func (repo CloudControllerUserRepository) SetOrgRoleByUsername(username string, orgGUID string, role models.Role) error { |
| 256 | rolePath, err := rolePath(role) |
nothing calls this directly
no test coverage detected