func (t *TeamsClient) List(ctx context.Context, orgID *identity.ID, name, teamType string) ([]TeamResult, error) {
	v := &url.Values{}

	if orgID != nil {
		v.Set("org_id", orgID.String())
	}
	if name != "" {
		v.Set("name", name)
	}
	if teamType != "" {
		v.Set("type", teamType)
	}

	req, _, err := t.client.NewRequest("GET", "/teams", v, nil, true)
	if err != nil {
		return nil, err
	}

	teams := []TeamResult{}
	_, err = t.client.Do(ctx, req, &teams, nil, nil)
	return teams, err
}
// List retrieves all teams for an org based on the filtered values
List retrieves all teams for an org based on the filtered values
// List retrieves all teams for an org based on the filtered values
func (t *TeamsClient) List(ctx context.Context, orgID *identity.ID, name, teamType string) ([]TeamResult, error) {
	v := &url.Values{}
	if orgID != nil {
		v.Set("org_id", orgID.String())
	}
	if name != "" {
		v.Set("name", name)
	}
	if teamType != "" {
		v.Set("type", teamType)
	}
	req, _, err := t.client.NewRequest("GET", "/teams", v, nil, true)
	if err != nil {
		return nil, err
	}
	teams := []TeamResult{}
	_, err = t.client.Do(ctx, req, &teams, nil, nil)
	return teams, err
}
func ( t * TeamsClient ) List ( ctx context . Context , orgID * identity . ID , name , teamType string ) ( [ ] TeamResult , error ) { v := & url . Values { } if orgID != nil { v . Set ( " " , orgID . String ( ) ) } if name != " " { v . Set ( " " , name ) } if teamType != " " { v . Set ( " " , teamType ) } req , _ , err := t . client . NewRequest ( " " , " " , v , nil , true ) if err != nil { return nil , err } teams := [ ] TeamResult { } _ , err = t . client . Do ( ctx , req , & teams , nil , nil ) return teams , err }
List retrieves all teams for an org based on the filtered values
List retrieves all teams for an org based on the filtered values