Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add method to create and store a shared access key... #219

Merged
merged 6 commits into from
Dec 19, 2024

Conversation

rwiker
Copy link
Contributor

@rwiker rwiker commented Dec 18, 2024

for a specific case, and extend the constructor to allow the use of this key.

The main intended use for this is by fmu-sumo-uploader, but it may have other uses.

Example use:

from sumo.wrapper import SumoClient

sumo=SumoClient(env="dev")
sumo.create_shared_access_key_for_case("388f3dd9-a219-4131-a6b3-c6a3b671257a")

...

sumo=SumoClient(env="dev", case_uuid="388f3dd9-a219-4131-a6b3-c6a3b671257a")
# The SumoClient instance sumo now has only access to objects belonging to the case 
# with uuid="388f3dd9-a219-4131-a6b3-c6a3b671257a"

…ic case, and extend the constructor to allow the use of this key.
@rwiker rwiker requested a review from a team December 18, 2024 13:03
Copy link
Contributor

@equinor-ruaj equinor-ruaj left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

src/sumo/wrapper/sumo_client.py Outdated Show resolved Hide resolved
@rwiker rwiker merged commit 9397740 into main Dec 19, 2024
18 checks passed
@rwiker rwiker deleted the feature/case-shared-tokens branch December 19, 2024 12:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants