Menu
Introduction
Getting Started
Developer guide
Release
Architecture
CLI
Technical documentations
Version
Publication date

Mar 9, 2022

Confidentiality
Public
Reactions
1
Share

ResourceService

Functions
call_view_from_view_config @classmethod
view_config_id : str
Return type : CallViewResult
call_view_on_resource_model @classmethod
resource_model : ResourceModel
view_name : str
config_values : dict
save_view_config : bool - False
Return type : CallViewResult
check_column_tags @classmethod

Check if the table resource model contains the provided column tags Args: table_resource_model (ResourceModel): The table resource model to check filter_column_tags (list[Any]): The list of column tags to check Returns: bool: True if the table resource model contains the provided column tags, False otherwise

table_resource_model : ResourceModel
filter_column_tags : list
Return type : bool
check_if_resource_is_used @classmethod

Check if a resource is used in a scenario, raise an exception if it is the case

resource_model : ResourceModel
delete @classmethod
resource_id : str
get_and_call_view_on_resource_model @classmethod
resource_model_id : str
view_name : str
config_values : dict
save_view_config : bool - False
Return type : CallViewResult
get_by_id_and_check @classmethod
id : str
Return type : ResourceModel
get_resource_children @classmethod
id : str
Return type : list
get_scenario_generated_resources @classmethod
scenario_ids : list
Return type : list
get_scenario_input_resources @classmethod
scenario_ids : list
Return type : list
get_scenarios_resources @classmethod

Return the list of reosurces used as input or output by the scenarios

scenario_ids : list
Return type : list
get_shared_resource_origin_info @classmethod
resource_model_id : str
Return type : SharedResource
get_view_json_file @classmethod
resource_model_id : str
view_name : str
config_values : dict
save_view_config : bool - False
Return type : ViewDTO
get_view_specs_from_resource @classmethod
resource_model_id : str
view_name : str
Return type : ResourceViewMetadatalDTO
get_view_specs_from_type @classmethod
resource_typing_name : str
view_name : str
Return type : ResourceViewMetadatalDTO
get_views_of_resource @classmethod
resource_typing_name : str
Return type : list
get_views_of_resource_type @classmethod
resource_type : type
Return type : list
search_apps @classmethod
search : SearchParams
page : int - 0
number_of_items_per_page : int - 20
Return type : Paginator
search_by_name @classmethod
name : str
page : int - 0
number_of_items_per_page : int - 20
Return type : Paginator
update_flagged @classmethod
view_config_id : str
flagged : bool
Return type : ResourceModel
update_folder @classmethod
resource_id : str
folder_id : str | None
Return type : ResourceModel
update_name @classmethod
resource_model_id : str
name : str
Return type : ResourceModel
update_resource_type @classmethod
file_id : str
file_typing_name : str
Return type : ResourceModel
Shine Logo
Technical bricks to reuse or customize

Have you developed a brick?

Share it to accelerate projects for the entire community.