Back to bricks list
Introduction Getting Started
Architecture
Technical Documentation
Other Classes
AbstractDbManager AgentFactory AudioView AuthService BadRequestException BarPlotView Base BaseEnvShell BaseHTTPException BaseModelDTO BaseTestCase BaseTestCaseLight BashCodeParam BoolParam BoolRField BoolValidator BoxPlotView BrickMigration BrickService CheckBeforeTaskResult CommunityService Compress CondaShellProxy Config ConfigParams Connector ConnectorPartSpec ConnectorSpec ConverterRunner Credentials CredentialsDataBasic CredentialsDataLab CredentialsDataOther CredentialsDataS3 CredentialsParam CredentialsType CurrentUserService Dashboard DashboardType DataframeAggregatorHelper DataframeDataFilterHelper DataframeFilterHelper DataFrameRField DataframeScalerHelper datetime DateTimeUTC DbConfig DictRField DictValidator DispatchedMessage DynamicInputs DynamicOutputs EntityNavigator EntityNavigatorNote EntityNavigatorResource EntityNavigatorScenario EntityNavigatorService EntityNavigatorView EntityTag EntityType Enum ExceptionHandler ExceptionResponse ExpressionBuilder ExternalApiService ExternalSpaceCreateFolder FileDownloader FileHelper FileRField FloatParam FloatRField FloatValidator ForbiddenException FrontService FrontTheme FSNodeModel FsNodeService GwsCorePackages GWSException GzipCompress HeatmapView HistogramView ImageView InPort Inputs InputSpec InputSpecs InterfaceSpec IntParam IntRField IntValidator IO IOface Job JsonCodeParam JSONField JSONView JuliaCodeParam KVStore LazyViewParam LinePlot2DView ListParam ListRField ListValidator Logger LoggerMessageObserver MailService MambaShellProxy MessageDispatcher MessageLevel MessageObserver Model ModelRfield ModelService Monitor MonitorService MultiViews NetworkView Note Notebook NoteParam NoteSearchBuilder NoteService NoteTemplate NoteTemplateParam NoteTemplateService NotFoundException NumericHelper NumericParam NumericValidator OpenAiChat OpenAiChatMessage OpenAiChatParam OpenAiHelper OutPort Outputs OutputSpec OutputSpecs PackageHelper Paginator ParamSet ParamSpec PerlCodeParam PipShellProxy PlotlyRField PlotlyView PoolDb Port PrimitiveRField Process ProcessFactory ProcessModel ProcessProxy ProcessSpec ProgressBar ProgressBarMessageObserver ProgressBarService ProtocolModel ProtocolProxy ProtocolService ProtocolTyping PythonCodeParam Queue QueueService RCodeParam Requests ResourceDownloaderBase ResourceModel ResourceOrigin ResourceRField ResourceSearchBuilder ResourceService ResourceTransfertService ResourceTyping RField RichText RichTextBlock RichTextBlockModificationDTO RichTextBlockModificationWithUserDTO RichTextBlockType RichTextDTO RichTextFigureData RichTextFileData RichTextFormulaData RichTextListData RichTextListItem RichTextModificationDifferenceDTO RichTextModificationsDTO RichTextModificationType RichTextNoteResourceViewData RichTextObjectType RichTextParagraphData RichTextParagraphHeaderData RichTextParagraphHeaderLevel RichTextParagraphListData RichTextParagraphListItemData RichTextParagraphText RichTextResourceViewData RichTextTimestampData RichTextUserDTO RichTextVariableData RichTextView RichTextViewFileData S3Bucket ScatterPlot2DView Scenario ScenarioCreationType ScenarioProcessStatus ScenarioProxy ScenarioRunService ScenarioSaveDTO ScenarioSearchBuilder ScenarioService ScenarioStatus ScenarioTemplate ScenarioTemplateFactory ScenarioTransfertService SearchBuilder SerializableObjectJson SerializableRField Settings ShellProxy ShellProxyFactory SimpleTextView SpaceFolder SpaceService SqlMigrator StackedBarPlotView StreamlitApp StreamlitAppManager StreamlitProcess StringHelper StrParam StrRField StrValidator SysProc TableAnnotatorHelper TableColumnSelector TableColumnTagToRowExtractor TableColumnTagUnfolder TableConcatHelper TableHeaderInfo TableOperationHelper TableRowSelector TableRowTagToColumnExtractor TableRowTagUnfolder TableScalerHelper TableTagAggregatorHelper TableUnfolderHelper TableView TabularView Tag TagHelper TagKeyModel TagList TagService TagsParam TagValueModel TarCompress TarGzCompress TaskFileDownloader TaskHelper TaskInputs TaskModel TaskProxy TaskRunner TaskService TaskTyping TechnicalInfo TextParam TextView TextViewData Typing TypingDeprecated TypingIconColor TypingIconType TypingManager TypingStyle UnauthorizedException URLValidator User UserCredentialsDTO UserGroup UserService Utils UUIDRField Validator VennDiagramView Version View ViewConfig ViewTester ViewType YamlCodeParam ZipCompress
Version

SpaceService

Attributes
AUTH_API_KEY_HEADER_PREFIX: strAUTH_HEADER_KEY: strUSER_ID_HEADER_KEY: str
Functions
__INIT__

Constructor of the SpaceService

Otherwise the current user is used for authentication, defaults to None

Parameters:
NameTypeDefault valueDescription
access_tokenOptional If access token is provided, it is used to authenticate. [str], optional
ADD_OR_REPLACE_TAGS_ON_OBJECT

Call the space api to create a child folder

Parameters:
NameTypeDefault valueDescription
entity_idstr
tagsList
Return type:
List
ADD_TAGS_TO_OBJECT

Call the space api to create a child folder

Parameters:
NameTypeDefault valueDescription
entity_idstr
tagsList
Return type:
List
CHECK_2_FA

Check the credential of an email/password by calling space and return true if ok

Parameters:
NameTypeDefault valueDescription
credentialsUserCredentials2Fa
Return type:
UserSpace
CHECK_API_KEY
Parameters:
NameTypeDefault valueDescription
api_keystr
Return type:
bool
CHECK_CREDENTIALS

Check the credential of an email/password by calling space, with 2Fa if needed

Parameters:
NameTypeDefault valueDescription
credentialsUserCredentialsDTO
for_loginbool True
Return type:
ExternalCheckCredentialResponse
CREATE_CHILD_FOLDER

Call the space api to create a child folder

Parameters:
NameTypeDefault valueDescription
parent_idstr
folderExternalSpaceCreateFolder
Return type:
ExternalSpaceFolder
CREATE_ROOT_FOLDER

Call the space api to create a root folder

Parameters:
NameTypeDefault valueDescription
folderExternalSpaceCreateFolder
Return type:
ExternalSpaceFolder
DELETE_NOTE
Parameters:
NameTypeDefault valueDescription
folder_idstr
note_idstr
DELETE_SCENARIO
Parameters:
NameTypeDefault valueDescription
folder_idstr
scenario_idstr
DELETE_TAGS_ON_OBJECT

Call the space api to create a child folder

Parameters:
NameTypeDefault valueDescription
entity_idstr
tagsList
GET_ALL_LAB_FOLDERS

Call the space api to get the list of folder for this lab

Return type:
ExternalSpaceFolders
GET_ALL_LAB_USERS

Call the space api to get the list of users for this lab

Return type:
List
GET_LAB_ROOT_FOLDER

Call the space api to get the a folder for this lab

Parameters:
NameTypeDefault valueDescription
id_str
Return type:
ExternalSpaceFolder
GET_MODIFICATIONS
Parameters:
NameTypeDefault valueDescription
old_contentRichTextDTO
new_contentRichTextDTO
old_modificationsOptional
Return type:
RichTextModificationsDTO
GET_UNDO_CONTENT
Parameters:
NameTypeDefault valueDescription
contentRichTextDTO
modificationsRichTextModificationsDTO
modification_idstr
Return type:
RichTextDTO
GET_USER_INFO

Call the space api to get the user info

Parameters:
NameTypeDefault valueDescription
user_idstr
Return type:
UserFullDTO
REGISTER_LAB_START

Call the space api to mark the lab as started

Parameters:
NameTypeDefault valueDescription
lab_configLabConfigModelDTO
Return type:
bool
SAVE_NOTE
Parameters:
NameTypeDefault valueDescription
folder_idstr
noteSaveNoteToSpaceDTO
file_pathsList
SAVE_SCENARIO
Parameters:
NameTypeDefault valueDescription
folder_idstr
save_scenario_dtoSaveScenarioToSpaceDTO
SEND_MAIL
Parameters:
NameTypeDefault valueDescription
send_mail_dtoSpaceSendMailDTO
Return type:
Response
SHARE_RESOURCE
Parameters:
NameTypeDefault valueDescription
folder_idstr
resource_dtoShareResourceWithSpaceDTO
UPDATE_NOTE_FOLDER
Parameters:
NameTypeDefault valueDescription
current_folder_idstr
note_idstr
new_folder_idstr
UPDATE_SCENARIO_FOLDER
Parameters:
NameTypeDefault valueDescription
current_folder_idstr
scenario_idstr
new_folder_idstr
SEND_MAIL_TO_MAILS - @classmethod
Parameters:
NameTypeDefault valueDescription
send_mail_to_mails_dtoSpaceSendMailToMailsDTO
Return type:
Response
CREATE_WITH_ACCESS_TOKEN - @staticmethod

Return a new instance of the SpaceService that use the access token for authentication

Return type:
SpaceService
GET_INSTANCE - @staticmethod

Return a new instance of the SpaceService that use the current user for authentication

Return type:
SpaceService