Get a list of a service's products.
    The list will be in the given region, matching the specific terms and
    any given attribute filters or a SKU.
161128
def product(pc, service, attrib, sku):
    
    pc.service = service.lower()
    pc.sku = sku
    pc.add_attributes(attribs=attrib)
    click.echo("Service Alias: {0}".format(pc.service_alias))
    click.echo("URL: {0}".format(pc.service_url))
    click.echo("Region: {0}".format(pc.region))
    click.echo("Product Terms: {0}".format(pc.terms))
    click.echo("Filtering Attributes: {0}".format(pc.attributes))

    prods = pyutu.find_products(pc)
    for p in prods:
        click.echo("Product SKU: {0} product: {1}".format(
            p, json.dumps(prods[p], indent=2, sort_keys=True))
        )

    click.echo("Total Products Found: {0}".format(len(prods)))
    click.echo("Time: {0} secs".format(time.process_time()))
312754
def get_service_packages(self):
        """"""
        api = self._get_api(billing.DefaultApi)
        package_response = api.get_service_packages()
        packages = []
        for state in PACKAGE_STATES:
            # iterate states in order
            items = getattr(package_response, state) or []
            for item in ensure_listable(items):
                params = item.to_dict()
                params['state'] = state
                packages.append(ServicePackage(params))
        return packages
843446
def services(self):
        """"""
        ids = [ref['id'] for ref in self['services']]
        return [Service.fetch(id) for id in ids]
46953
public static ProductGetlistResult productGetlist(String accessToken, ProductGetlist productGetlist) {
        return productGetlist(accessToken, JsonUtil.toJSONString(productGetlist));
    }
1045381
@Override
	public List<CommerceAddress> findByCommerceRegionId(long commerceRegionId) {
		return findByCommerceRegionId(commerceRegionId, QueryUtil.ALL_POS,
			QueryUtil.ALL_POS, null);
	}
84762
def list_products(page_size=200, page_index=0, sort="", q=""):
    
    content = list_products_raw(page_size, page_index, sort, q)
    if content:
        return utils.format_json_list(content)
92200
def _get_regions(self):
        """"""
        if self._specs_in[_REGIONS_STR] == 'all':
            return [_get_all_objs_of_type(
                Region, getattr(self._obj_lib, 'regions', self._obj_lib)
            )]
        else:
            return [set(self._specs_in[_REGIONS_STR])]
1206864
def get_basket_items(request):
    
    bid = basket_id(request)
    return BasketItem.objects.filter(basket_id=bid), bid
645149
def list(self, service_name, **params):
        
        result = self._invoke_call(service_name, 'list', **params)
        if result is not None:
            return result.get(service_name, list())
        return list()
950240
def product_content
      if match_environment
        environment = consumable.lifecycle_environment
        view = consumable.content_view
        return [] unless environment && view
        version = ContentViewVersion.in_environment(environment).where(:content_view_id => view).first
      end

      considered_products = match_subscription ? consumable.products : consumable.organization.products.enabled.uniq

      roots = Katello::RootRepository.where(:product_id => considered_products).subscribable
      roots = roots.in_content_view_version(version) if version

      consumable.organization.enabled_product_content_for(roots)
    end
340328
def list_sqs(region, filter_by_kwargs):
    """"""
    conn = boto.sqs.connect_to_region(region)
    queues = conn.get_all_queues()
    return lookup(queues, filter_by=filter_by_kwargs)
292817
def list(self, request, *args, **kwargs):
        
        return super(PriceListItemViewSet, self).list(request, *args, **kwargs)
859555
def list_services():
    
    for importer, modname, ispkg in pkgutil.iter_modules(services.__path__):
        if ispkg is False:
            importer.find_module(modname).load_module(modname)

    services_list = list()
    for s in services.serviceBase.__subclasses__():
        services_list.append(s.__name__.lower())

    return services_list
15068
def list(self):
        
        mylist = []
        for prod in self.product_list:
            if self.purchasable(prod) and not self.entitled(prod):
                mylist.append(prod)
        return mylist
56135
def list_services(profile=None, api_key=None):
    '''
    
    '''
    return salt.utils.pagerduty.list_items(
        'services',
        'name',
        __salt__['config.option'](profile),
        api_key,
        opts=__opts__
    )
653872
def _get_products(self):
        
        '''  '''
    
    # request product list
        products_request = self.account_products()
        if products_request['error']:
            raise Exception(products_request['error'])

    # construct list of product ids
        product_ids = []
        for product in products_request["json"]["entries"]:
            product_ids.append(product['productId'])
    
    # construct default product map
        self.products = {}
    
    # request product details
        for id in product_ids:
            product_request = self.account_product(id)
            if product_request['error']:
                raise Exception(product_request['error'])
            self.products[id] = product_request['json']

        return self.products
1098679
def _get_variant_regions(items):
    
    return list(filter(lambda x: x is not None,
                       [tz.get_in(("config", "algorithm", "variant_regions"), data)
                        for data in items
                        if tz.get_in(["config", "algorithm", "coverage_interval"], data) != "genome"]))