(oldSpaceName, newSpaceName, orgGUID string)
| 270 | } |
| 271 | |
| 272 | func (actor Actor) RenameSpaceByNameAndOrganizationGUID(oldSpaceName, newSpaceName, orgGUID string) (resources.Space, Warnings, error) { |
| 273 | var allWarnings Warnings |
| 274 | |
| 275 | space, getWarnings, err := actor.GetSpaceByNameAndOrganization(oldSpaceName, orgGUID) |
| 276 | allWarnings = append(allWarnings, getWarnings...) |
| 277 | if err != nil { |
| 278 | return resources.Space{}, allWarnings, err |
| 279 | } |
| 280 | |
| 281 | ccSpace, updateWarnings, err := actor.CloudControllerClient.UpdateSpace(resources.Space{GUID: space.GUID, Name: newSpaceName}) |
| 282 | allWarnings = append(allWarnings, Warnings(updateWarnings)...) |
| 283 | |
| 284 | return resources.Space(ccSpace), allWarnings, err |
| 285 | } |
nothing calls this directly
no test coverage detected