File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -6132,43 +6132,6 @@ def get_project_product_base_types(
61326132 return parsed_data .get ("project" , {}).get ("productBaseTypes" , [])
61336133
61346134
6135- def get_product_base_type_names (
6136- self ,
6137- project_name : Optional [str ] = None ,
6138- product_ids : Optional [Iterable [str ]] = None ,
6139- ) -> Set [str ]:
6140- """Get projects roduct base type names.
6141-
6142- Args:
6143- project_name (Optional[str]): Name of project where to look for
6144- queried entities.
6145- product_ids (Optional[Iterable[str]]): Product ids filter. Can be
6146- used only with 'project_name'.
6147-
6148- Returns:
6149- set[str]: Product base type names used in the project.
6150-
6151- """
6152- if project_name and product_ids :
6153- products = self .get_products (
6154- project_name ,
6155- product_ids = product_ids ,
6156- fields = ["productBaseType" ],
6157- active = None ,
6158- )
6159- return {
6160- product ["productBaseType" ]
6161- for product in products
6162- }
6163-
6164- return {
6165- product_info ["name" ]
6166- for product_info in self .get_project_product_base_types (
6167- project_name , fields = ["name" ]
6168- )
6169- }
6170-
6171-
61726135 def create_product (
61736136 self ,
61746137 project_name : str ,
You can’t perform that action at this time.
0 commit comments