MCPcopy Index your code
hub / github.com/cloudfoundry/cli / UnsetSpaceRoleByUsername

Method UnsetSpaceRoleByUsername

cf/api/users.go:248–253  ·  view source on GitHub ↗
(username, spaceGUID string, role models.Role)

Source from the content-addressed store, hash-verified

246}
247
248func (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
255func (repo CloudControllerUserRepository) SetOrgRoleByUsername(username string, orgGUID string, role models.Role) error {
256 rolePath, err := rolePath(role)

Callers

nothing calls this directly

Calls 3

callAPIMethod · 0.95
usernamePayloadFunction · 0.85
APIEndpointMethod · 0.65

Tested by

no test coverage detected