AUTH_API_KEY_HEADER_PREFIX: str
AUTH_HEADER_KEY: str
USER_ID_HEADER_KEY: str
Constructor of the SpaceService
Otherwise the current user is used for authentication, defaults to None
Name | Type | Default value | Description |
---|---|---|---|
access_token | Optional | If access token is provided, it is used to authenticate. [str], optional |
Call the space api to create a child folder
Name | Type | Default value | Description |
---|---|---|---|
entity_id | str | ||
tags | List |
List |
Call the space api to create a child folder
Name | Type | Default value | Description |
---|---|---|---|
entity_id | str | ||
tags | List |
List |
Check the credential of an email/password by calling space and return true if ok
Name | Type | Default value | Description |
---|---|---|---|
credentials | UserCredentials2Fa |
UserSpace |
Name | Type | Default value | Description |
---|---|---|---|
api_key | str |
bool |
Check the credential of an email/password by calling space, with 2Fa if needed
Name | Type | Default value | Description |
---|---|---|---|
credentials | UserCredentialsDTO | ||
for_login | bool | True |
ExternalCheckCredentialResponse |
Call the space api to create a child folder
Name | Type | Default value | Description |
---|---|---|---|
parent_id | str | ||
folder | ExternalSpaceCreateFolder |
ExternalSpaceFolder |
Call the space api to create a root folder
Name | Type | Default value | Description |
---|---|---|---|
folder | ExternalSpaceCreateFolder |
ExternalSpaceFolder |
Name | Type | Default value | Description |
---|---|---|---|
folder_id | str | ||
note_id | str |
Name | Type | Default value | Description |
---|---|---|---|
folder_id | str | ||
scenario_id | str |
Call the space api to create a child folder
Name | Type | Default value | Description |
---|---|---|---|
entity_id | str | ||
tags | List |
Call the space api to get the list of folder for this lab
ExternalSpaceFolders |
Call the space api to get the list of users for this lab
List |
Call the space api to get the a folder for this lab
Name | Type | Default value | Description |
---|---|---|---|
id_ | str |
ExternalSpaceFolder |
Name | Type | Default value | Description |
---|---|---|---|
old_content | RichTextDTO | ||
new_content | RichTextDTO | ||
old_modifications | Optional |
RichTextModificationsDTO |
Name | Type | Default value | Description |
---|---|---|---|
content | RichTextDTO | ||
modifications | RichTextModificationsDTO | ||
modification_id | str |
RichTextDTO |
Call the space api to get the user info
Name | Type | Default value | Description |
---|---|---|---|
user_id | str |
UserFullDTO |
Call the space api to mark the lab as started
Name | Type | Default value | Description |
---|---|---|---|
lab_config | LabConfigModelDTO |
bool |
Name | Type | Default value | Description |
---|---|---|---|
folder_id | str | ||
note | SaveNoteToSpaceDTO | ||
file_paths | List |
Name | Type | Default value | Description |
---|---|---|---|
folder_id | str | ||
save_scenario_dto | SaveScenarioToSpaceDTO |
Name | Type | Default value | Description |
---|---|---|---|
send_mail_dto | SpaceSendMailDTO |
Response |
Name | Type | Default value | Description |
---|---|---|---|
current_folder_id | str | ||
note_id | str | ||
new_folder_id | str |
Name | Type | Default value | Description |
---|---|---|---|
current_folder_id | str | ||
scenario_id | str | ||
new_folder_id | str |
Name | Type | Default value | Description |
---|---|---|---|
send_mail_to_mails_dto | SpaceSendMailToMailsDTO |
Response |
Return a new instance of the SpaceService that use the access token for authentication
SpaceService |
Return a new instance of the SpaceService that use the current user for authentication
SpaceService |