MCPcopy Create free account
hub / github.com/cloudfoundry/cli / updateOrganization

Method updateOrganization

actor/v7action/organization.go:63–70  ·  view source on GitHub ↗

updateOrganization updates the name and/or labels of an organization

(org resources.Organization)

Source from the content-addressed store, hash-verified

61
62// updateOrganization updates the name and/or labels of an organization
63func (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
72func (actor Actor) RenameOrganization(oldOrgName, newOrgName string) (resources.Organization, Warnings, error) {
73 var allWarnings Warnings

Callers 1

RenameOrganizationMethod · 0.95

Implementers 1

FakeActorcommand/v7/v7fakes/fake_actor.go

Calls 2

WarningsTypeAlias · 0.70
UpdateOrganizationMethod · 0.65

Tested by

no test coverage detected