View the Project on GitHub elements-storage/elements-sdk-python
Method | HTTP request | Description |
---|---|---|
get_shared_storage_value | GET /api/2/private/shared-storage/{name} |
|
get_user_storage_value | GET /api/2/private/user-storage/{name} |
|
set_shared_storage_value | POST /api/2/private/shared-storage/{name} |
|
set_user_storage_value | POST /api/2/private/user-storage/{name} |
def StorageResponse get_shared_storage_value(name)
import elements_sdk
from elements_sdk.api import sharedstorage_api
from elements_sdk.model.storage_response import StorageResponse
from pprint import pprint
# See configuration.py for a list of all supported configuration parameters.
configuration = elements_sdk.Configuration(
host="https://elements.local:8080",
discard_unknown_keys=True,
)
configuration.client_side_validation = False
configuration.api_key['Bearer'] = 'Bearer your-api-token-here'
with elements_sdk.ApiClient(configuration) as api_client:
api_instance = sharedstorage_api.SharedstorageApi(api_client)
name = "name_example" # str |
# example passing only required values which don't have defaults set
try:
api_response = api_instance.get_shared_storage_value(name)
pprint(api_response)
except elements_sdk.ApiException as e:
print("Exception when calling SharedstorageApi->get_shared_storage_value: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
name | str |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
def StorageResponse get_user_storage_value(name)
import elements_sdk
from elements_sdk.api import sharedstorage_api
from elements_sdk.model.storage_response import StorageResponse
from pprint import pprint
# See configuration.py for a list of all supported configuration parameters.
configuration = elements_sdk.Configuration(
host="https://elements.local:8080",
discard_unknown_keys=True,
)
configuration.client_side_validation = False
configuration.api_key['Bearer'] = 'Bearer your-api-token-here'
with elements_sdk.ApiClient(configuration) as api_client:
api_instance = sharedstorage_api.SharedstorageApi(api_client)
name = "name_example" # str |
# example passing only required values which don't have defaults set
try:
api_response = api_instance.get_user_storage_value(name)
pprint(api_response)
except elements_sdk.ApiException as e:
print("Exception when calling SharedstorageApi->get_user_storage_value: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
name | str |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
def StorageResponse set_shared_storage_value(name, storage_request)
import elements_sdk
from elements_sdk.api import sharedstorage_api
from elements_sdk.model.storage_request import StorageRequest
from elements_sdk.model.storage_response import StorageResponse
from pprint import pprint
# See configuration.py for a list of all supported configuration parameters.
configuration = elements_sdk.Configuration(
host="https://elements.local:8080",
discard_unknown_keys=True,
)
configuration.client_side_validation = False
configuration.api_key['Bearer'] = 'Bearer your-api-token-here'
with elements_sdk.ApiClient(configuration) as api_client:
api_instance = sharedstorage_api.SharedstorageApi(api_client)
name = "name_example" # str |
storage_request = StorageRequest(
value="value_example",
initiator="initiator_example",
) # StorageRequest |
# example passing only required values which don't have defaults set
try:
api_response = api_instance.set_shared_storage_value(name, storage_request)
pprint(api_response)
except elements_sdk.ApiException as e:
print("Exception when calling SharedstorageApi->set_shared_storage_value: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
name | str | ||
storage_request | StorageRequest |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
def StorageResponse set_user_storage_value(name, storage_request)
import elements_sdk
from elements_sdk.api import sharedstorage_api
from elements_sdk.model.storage_request import StorageRequest
from elements_sdk.model.storage_response import StorageResponse
from pprint import pprint
# See configuration.py for a list of all supported configuration parameters.
configuration = elements_sdk.Configuration(
host="https://elements.local:8080",
discard_unknown_keys=True,
)
configuration.client_side_validation = False
configuration.api_key['Bearer'] = 'Bearer your-api-token-here'
with elements_sdk.ApiClient(configuration) as api_client:
api_instance = sharedstorage_api.SharedstorageApi(api_client)
name = "name_example" # str |
storage_request = StorageRequest(
value="value_example",
initiator="initiator_example",
) # StorageRequest |
# example passing only required values which don't have defaults set
try:
api_response = api_instance.set_user_storage_value(name, storage_request)
pprint(api_response)
except elements_sdk.ApiException as e:
print("Exception when calling SharedstorageApi->set_user_storage_value: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
name | str | ||
storage_request | StorageRequest |
[Back to top] [Back to API list] [Back to Model list] [Back to README]