-
-
Notifications
You must be signed in to change notification settings - Fork 2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #8338 from OpenMined/azure_direct_conn
Change URL generation Azure mounted files
- Loading branch information
Showing
15 changed files
with
1,417 additions
and
256 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
35 changes: 35 additions & 0 deletions
35
packages/syft/src/syft/service/blob_storage/remote_profile.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
# relative | ||
from ...serde.serializable import serializable | ||
from ...store.document_store import BaseUIDStoreStash | ||
from ...store.document_store import DocumentStore | ||
from ...store.document_store import PartitionSettings | ||
from ...types.syft_object import SYFT_OBJECT_VERSION_1 | ||
from ...types.syft_object import SyftObject | ||
|
||
|
||
@serializable() | ||
class RemoteProfile(SyftObject): | ||
__canonical_name__ = "RemoteConfig" | ||
__version__ = SYFT_OBJECT_VERSION_1 | ||
|
||
|
||
@serializable() | ||
class AzureRemoteProfile(RemoteProfile): | ||
__canonical_name__ = "AzureRemoteConfig" | ||
__version__ = SYFT_OBJECT_VERSION_1 | ||
|
||
profile_name: str # used by seaweedfs | ||
account_name: str | ||
account_key: str | ||
container_name: str | ||
|
||
|
||
@serializable() | ||
class RemoteProfileStash(BaseUIDStoreStash): | ||
object_type = RemoteProfile | ||
settings: PartitionSettings = PartitionSettings( | ||
name=RemoteProfile.__canonical_name__, object_type=RemoteProfile | ||
) | ||
|
||
def __init__(self, store: DocumentStore) -> None: | ||
super().__init__(store=store) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.