Users.GetTeams should return *[]octopusdeploy.Team objects instead of *[]octopusdeploy.ProjectedTeamReferenceDataItem
twerthi opened this issue · comments
Is your feature request related to a problem? Please describe.
Users.GetTeams returns *[]octopusdeploy.ProjectedTeamReferenceDataItem which reports that it's non-indexable.
Describe the solution you'd like
It would make more sense to return *[]octopusdeploy.Team.
Describe alternatives you've considered
You can get at the data, but it's a little convoluted if you're not familiar with the nuances of Go
for i := 0; i < len(*teams); i++ {
teamsReference := *teams
teamsReference[i]
}
Additional context
Add any other context or screenshots about the feature request here.