func (p *ProjectsClient) List(ctx context.Context, orgIDs *[]*identity.ID, names *[]string) ([]ProjectResult, error) {
	v := &url.Values{}
	if orgIDs != nil {
		for _, id := range *orgIDs {
			v.Add("org_id", id.String())
		}
	}
	if names != nil {
		for _, n := range *names {
			v.Add("name", n)
		}
	}

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

	projects := []ProjectResult{}
	_, err = p.client.Do(ctx, req, &projects, nil, nil)
	return projects, err
}
// List retrieves relevant projects by name and/or orgID
List retrieves relevant projects by name and/or orgID
// List retrieves relevant projects by name and / or orgID
func (p *ProjectsClient) List(ctx context.Context, orgIDs *[]*identity.ID, names *[]string) ([]ProjectResult, error) {
	v := &url.Values{}
	if orgIDs != nil {
		for _, id := range *orgIDs {
			v.Add("org_id", id.String())
		}
	}
	if names != nil {
		for _, n := range *names {
			v.Add("name", n)
		}
	}
	req, _, err := p.client.NewRequest("GET", "/projects", v, nil, true)
	if err != nil {
		return nil, err
	}
	projects := []ProjectResult{}
	_, err = p.client.Do(ctx, req, &projects, nil, nil)
	return projects, err
}
func ( p * ProjectsClient ) List ( ctx context . Context , orgIDs * [ ] * identity . ID , names * [ ] string ) ( [ ] ProjectResult , error ) { v := & url . Values { } if orgIDs != nil { for _ , id := range * orgIDs { v . Add ( " " , id . String ( ) ) } } if names != nil { for _ , n := range * names { v . Add ( " " , n ) } } req , _ , err := p . client . NewRequest ( " " , " " , v , nil , true ) if err != nil { return nil , err } projects := [ ] ProjectResult { } _ , err = p . client . Do ( ctx , req , & projects , nil , nil ) return projects , err }
List retrieves relevant projects by name and/or orgID
List retrieves relevant projects by name and / or orgID