commons
Package¶
decoders
¶
dtos
¶
- class tvb.interfaces.rest.commons.dtos.AlgorithmDto(algorithm: Algorithm = None, **kwargs: {})[source]¶
Bases:
BaseDto
- class tvb.interfaces.rest.commons.dtos.DataTypeDto(datatype: DataType = None, **kwargs: {})[source]¶
Bases:
BaseDto
- class tvb.interfaces.rest.commons.dtos.OperationDto(operation: {} = None, **kwargs: {})[source]¶
Bases:
BaseDto
- property description¶
- property displayname¶
exceptions
¶
- exception tvb.interfaces.rest.commons.exceptions.AuthorizationRequestException(message=None, code=401)[source]¶
Bases:
BaseRestException
- exception tvb.interfaces.rest.commons.exceptions.BadRequestException(message, payload=None)[source]¶
Bases:
BaseRestException
- exception tvb.interfaces.rest.commons.exceptions.BaseRestException(message=None, code=None, payload=None)[source]¶
Bases:
TVBException
- exception tvb.interfaces.rest.commons.exceptions.ClientException(message, code=400)[source]¶
Bases:
BaseRestException
- exception tvb.interfaces.rest.commons.exceptions.InvalidIdentifierException(message=None, payload=None)[source]¶
Bases:
BaseRestException
- exception tvb.interfaces.rest.commons.exceptions.InvalidInputException(message=None, payload=None)[source]¶
Bases:
BadRequestException
files_helper
¶
status_codes
¶
strings
¶
- class tvb.interfaces.rest.commons.strings.FormKeyInput(value)[source]¶
Bases:
Enum
An enumeration.
- CODE = 'code'¶
- CREATE_PROJECT_DESCRIPTION = 'project_description'¶
- CREATE_PROJECT_NAME = 'project_name'¶
- KEYCLOAK_REFRESH_TOKEN = 'refresh_token'¶
- NEW_MEMBERS_GID = 'new_members_gid'¶
- REDIRECT_URI = 'redirect_uri'¶
- class tvb.interfaces.rest.commons.strings.LinkPlaceholder(value)[source]¶
Bases:
Enum
An enumeration.
- ALG_CLASSNAME = 'algorithm_classname'¶
- ALG_MODULE = 'algorithm_module'¶
- DATATYPE_GID = 'datatype_gid'¶
- OPERATION_GID = 'operation_gid'¶
- PROJECT_GID = 'project_gid'¶
- USERNAME = 'username'¶
- class tvb.interfaces.rest.commons.strings.RequestFileKey(value)[source]¶
Bases:
Enum
An enumeration.
- LAUNCH_ANALYZERS_MODEL_FILE = 'model_file'¶
- SIMULATION_FILE_KEY = 'simulation_zip_file'¶
- SIMULATION_FILE_NAME = 'SimulationData.zip'¶
- class tvb.interfaces.rest.commons.strings.RestLink(value)[source]¶
Bases:
Enum
An enumeration.
- DATATYPE_EXTRA_INFO = '/{datatype_gid}/extra_info'¶
- DATATYPE_OPERATIONS = '/{datatype_gid}/operations'¶
- DATA_IN_PROJECT = '/{project_gid}/data'¶
- FIRE_SIMULATION = '/{project_gid}'¶
- GET_DATATYPE = '/{datatype_gid}'¶
- IS_DATA_ENCRYPTED = '/is_data_encrypted'¶
- LAUNCH_OPERATION = '/{project_gid}/algorithm/{algorithm_module}/{algorithm_classname}'¶
- LOGIN = '/login'¶
- OPERATIONS_IN_PROJECT = '/{project_gid}/operations'¶
- OPERATION_RESULTS = '/{operation_gid}/results'¶
- OPERATION_STATUS = '/{operation_gid}/status'¶
- PROJECTS = '/logged/projects'¶
- PROJECT_MEMBERS = '/{project_gid}/members'¶
- USEFUL_URLS = '/kc-urls'¶