Get the storage client.
(self)
| 91 | self._event_manager = event_manager |
| 92 | |
| 93 | def get_storage_client(self) -> StorageClient: |
| 94 | """Get the storage client.""" |
| 95 | if self._storage_client is None: |
| 96 | logger.debug('No storage client set, implicitly creating and using default FileSystemStorageClient.') |
| 97 | if self._configuration is None: |
| 98 | logger.warning( |
| 99 | 'Implicit creation of storage client will implicitly set configuration as side effect. ' |
| 100 | 'It is advised to explicitly first set the configuration instead.' |
| 101 | ) |
| 102 | self._storage_client = FileSystemStorageClient() |
| 103 | |
| 104 | return self._storage_client |
| 105 | |
| 106 | def set_storage_client(self, storage_client: StorageClient) -> None: |
| 107 | """Set the storage client. |