Login
Back to bricks list
Introduction Version

ResourceService

Functions

CALL_VIEW_FROM_VIEW_CONFIG - @classmethod
Parameters:
NameTypeDefault valueDescription
view_config_idstr
Return type:
CallViewResult
CALL_VIEW_ON_RESOURCE_MODEL - @classmethod
Parameters:
NameTypeDefault valueDescription
resource_modelResourceModel
view_namestr
config_valuesDict
save_view_configbool False
Return type:
CallViewResult
CHECK_IF_RESOURCE_IS_USED - @classmethod

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

Parameters:
NameTypeDefault valueDescription
resource_modelResourceModel
DELETE - @classmethod
Parameters:
NameTypeDefault valueDescription
resource_idstr
GET_AND_CALL_VIEW_ON_RESOURCE_MODEL - @classmethod
Parameters:
NameTypeDefault valueDescription
resource_model_idstr
view_namestr
config_valuesDict
save_view_configbool False
Return type:
CallViewResult
GET_BY_ID_AND_CHECK - @classmethod
Parameters:
NameTypeDefault valueDescription
idstr
Return type:
ResourceModel
GET_EXPERIMENT_GENERATED_RESOURCES - @classmethod
Parameters:
NameTypeDefault valueDescription
experiment_idsList
Return type:
List
GET_EXPERIMENT_INPUT_RESOURCES - @classmethod
Parameters:
NameTypeDefault valueDescription
experiment_idsList
Return type:
List
GET_EXPERIMENTS_RESOURCES - @classmethod

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

Parameters:
NameTypeDefault valueDescription
experiment_idsList
Return type:
List
GET_RESOURCE_CHILDREN - @classmethod
Parameters:
NameTypeDefault valueDescription
idstr
Return type:
List
GET_SHARED_RESOURCE_ORIGIN_INFO - @classmethod
Parameters:
NameTypeDefault valueDescription
resource_model_idstr
Return type:
SharedResource
GET_VIEW_JSON_FILE - @classmethod
Parameters:
NameTypeDefault valueDescription
resource_model_idstr
view_namestr
config_valuesDict
save_view_configbool False
Return type:
ViewDTO
GET_VIEW_SPECS_FROM_RESOURCE - @classmethod
Parameters:
NameTypeDefault valueDescription
resource_model_idstr
view_namestr
Return type:
ResourceViewMetadatalDTO
GET_VIEW_SPECS_FROM_TYPE - @classmethod
Parameters:
NameTypeDefault valueDescription
resource_typing_namestr
view_namestr
Return type:
ResourceViewMetadatalDTO
GET_VIEWS_OF_RESOURCE - @classmethod
Parameters:
NameTypeDefault valueDescription
resource_typing_namestr
Return type:
List
GET_VIEWS_OF_RESOURCE_TYPE - @classmethod
Parameters:
NameTypeDefault valueDescription
resource_typeType
Return type:
List
UPDATE_FLAGGED - @classmethod
Parameters:
NameTypeDefault valueDescription
view_config_idstr
flaggedbool
Return type:
ResourceModel
UPDATE_NAME - @classmethod
Parameters:
NameTypeDefault valueDescription
resource_model_idstr
namestr
Return type:
ResourceModel
UPDATE_PROJECT - @classmethod
Parameters:
NameTypeDefault valueDescription
resource_idstr
project_idOptional
Return type:
ResourceModel
UPDATE_RESOURCE_TYPE - @classmethod
Parameters:
NameTypeDefault valueDescription
file_idstr
file_typing_namestr
Return type:
ResourceModel