2nd iteration

This commit is contained in:
Quentin 2023-11-22 21:18:47 +01:00
parent f3cc4f21dc
commit 1c001906ac
Signed by: quentin
GPG key ID: E9602264D639FF68
6 changed files with 7 additions and 7 deletions

View file

@ -56,7 +56,7 @@ with garage_admin_sdk.ApiClient(configuration) as api_client:
# --- UPDATE KEY --- # --- UPDATE KEY ---
# not required here, just to demo the API # not required here, just to demo the API
kinfo = keys.search_key("openapi") kinfo = keys.get_key(search="openapi")
allow_create = UpdateKeyRequestAllow(create_bucket=True) allow_create = UpdateKeyRequestAllow(create_bucket=True)
kreq = UpdateKeyRequest(allow=allow_create) kreq = UpdateKeyRequest(allow=allow_create)
@ -64,7 +64,7 @@ with garage_admin_sdk.ApiClient(configuration) as api_client:
print(f"key {kinfo.access_key_id} can now create buckets") print(f"key {kinfo.access_key_id} can now create buckets")
# update key info # update key info
kinfo = keys.search_key("openapi", show_secret_key=True) kinfo = keys.get_key(search="openapi", show_secret_key="true")
print(f"key permissions: {kinfo.permissions}") print(f"key permissions: {kinfo.permissions}")
# ---- THE END --- # ---- THE END ---

View file

@ -1 +1 @@
git+https://git.deuxfleurs.fr/garage-sdk/garage-admin-sdk-python@715450cfe6 git+https://git.deuxfleurs.fr/garage-sdk/garage-admin-sdk-python@e02326f5dbdf467c380663a7ecb14bcdfdc88149

2
garage

@ -1 +1 @@
Subproject commit 3684c29ad05458500b154428bfec6a8c15b2cdef Subproject commit 2d37e7fa391679ad4daa0725d2af9681e4dd9635

@ -1 +1 @@
Subproject commit bdb4b9b29f5bef65fe7e700baa61d60aa9ee7294 Subproject commit f442d10b102d92ec22cf2ab1bde5b8c6d78a1f62

@ -1 +1 @@
Subproject commit c31d1d046f91ec0f67d661ef881a2d572f3e374a Subproject commit 4e3e8ea9986e427f969ab31be116b7ed95ae8362

@ -1 +1 @@
Subproject commit 715450cfe62f67f2957ed5026505750ca2bf8a1a Subproject commit e02326f5dbdf467c380663a7ecb14bcdfdc88149