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

Method UnsetOrgRoleByGUID

cf/api/users.go:229–235  ·  view source on GitHub ↗
(userGUID, orgGUID string, role models.Role)

Source from the content-addressed store, hash-verified

227}
228
229func (repo CloudControllerUserRepository) UnsetOrgRoleByGUID(userGUID, orgGUID string, role models.Role) (err error) {
230 path, err := userGUIDPath(repo.config.APIEndpoint(), userGUID, orgGUID, role)
231 if err != nil {
232 return
233 }
234 return repo.callAPI("DELETE", path, nil)
235}
236
237func (repo CloudControllerUserRepository) UnsetOrgRoleByUsername(username, orgGUID string, role models.Role) error {
238 rolePath, err := rolePath(role)

Callers

nothing calls this directly

Calls 3

callAPIMethod · 0.95
userGUIDPathFunction · 0.85
APIEndpointMethod · 0.65

Tested by

no test coverage detected