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