updateOrganization updates the name and/or labels of an organization
(org resources.Organization)
| 61 | |
| 62 | // updateOrganization updates the name and/or labels of an organization |
| 63 | func (actor Actor) updateOrganization(org resources.Organization) (resources.Organization, Warnings, error) { |
| 64 | updatedOrg, warnings, err := actor.CloudControllerClient.UpdateOrganization(org) |
| 65 | if err != nil { |
| 66 | return resources.Organization{}, Warnings(warnings), err |
| 67 | } |
| 68 | |
| 69 | return updatedOrg, Warnings(warnings), nil |
| 70 | } |
| 71 | |
| 72 | func (actor Actor) RenameOrganization(oldOrgName, newOrgName string) (resources.Organization, Warnings, error) { |
| 73 | var allWarnings Warnings |
no test coverage detected