code: func (m *MachinesClient) List(ctx context.Context, orgID *identity.ID, state *string, name *string, teamID *identity.ID) ([]apitypes.MachineSegment, error) {
  	v := &url.Values{}
  	if orgID != nil {
  		v.Add("org_id", (*orgID).String())
  	}
  	if state != nil {
  		v.Add("state", *state)
  	}
  	if teamID != nil {
  		v.Add("team_id", (*teamID).String())
  	}
  	if name != nil {
  		v.Add("name", *name)
  	}
  
  	var results []apitypes.MachineSegment
  	err := m.client.RoundTrip(ctx, "GET", "/machines", v, nil, &results)
  	return results, err
  }
docs: // List machines in the given org and state