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

Method SetOrgRoleByGUID

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

Source from the content-addressed store, hash-verified

215}
216
217func (repo CloudControllerUserRepository) SetOrgRoleByGUID(userGUID string, orgGUID string, role models.Role) (err error) {
218 path, err := userGUIDPath(repo.config.APIEndpoint(), userGUID, orgGUID, role)
219 if err != nil {
220 return
221 }
222 err = repo.callAPI("PUT", path, nil)
223 if err != nil {
224 return
225 }
226 return repo.assocUserWithOrgByUserGUID(userGUID, orgGUID)
227}
228
229func (repo CloudControllerUserRepository) UnsetOrgRoleByGUID(userGUID, orgGUID string, role models.Role) (err error) {
230 path, err := userGUIDPath(repo.config.APIEndpoint(), userGUID, orgGUID, role)

Callers

nothing calls this directly

Calls 4

callAPIMethod · 0.95
userGUIDPathFunction · 0.85
APIEndpointMethod · 0.65

Tested by

no test coverage detected