gws_core

Introduction
Getting Started
Developer guide
Release
Architecture
CLI
Technical documentations
Version

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_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
update_flagged @classmethod
view_config_id : str
flagged : bool
Return type : ResourceModel
update_folder @classmethod
resource_id : str
folder_id : Optional
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