All URIs are relative to https://api.waylay.io
Method | HTTP request | Description |
---|---|---|
get | GET /storage/v1/bucket/{bucket_name} | Get Bucket |
list | GET /storage/v1/bucket | List Buckets |
get( bucket_name: str, query: GetQuery, headers ) -> Bucket
Get Bucket
Get a descriptive representation of a bucket.
from pprint import pprint
# Import the waylay-client from the waylay-sdk-core package
from waylay.sdk.client import WaylayClient
from waylay.sdk.api.api_exceptions import ApiError
# Intialize a waylay client instance
waylay_client = WaylayClient.from_profile()
# Note that the typed model classes for responses/parameters/... are only available when `waylay-sdk-storage-types` is installed
from waylay.services.storage.models.bucket import Bucket
try:
# Get Bucket
# calls `GET /storage/v1/bucket/{bucket_name}`
api_response = await waylay_client.storage.bucket.get(
'bucket_name_example', # bucket_name | path param "bucket_name"
# query parameters:
query = {
},
)
print("The response of storage.bucket.get:\n")
pprint(api_response)
except ApiError as e:
print("Exception when calling storage.bucket.get: %s\n" % e)
GET /storage/v1/bucket/{bucket_name}
Name | Type | API binding | Description | Notes |
---|---|---|---|---|
bucket_name | str | path parameter "bucket_name" |
||
query | QueryParamTypes | None | URL query parameter | ||
query['store'] (dict) query.store (Query) |
str | query parameter "store" |
[optional] | |
headers | HeaderTypes | request headers |
Selected path param | Raw response param | Return Type | Description | Links |
---|---|---|---|---|
Literal[""] (default) | False (default) | Bucket |
Bucket | |
str | False (default) | Any |
If any other string value for the selected path is provided, the exact type of the response will only be known at runtime. | |
/ | True | Response |
The raw http response object. |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful Response | - |
422 | Validation Error | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
list( query: ListQuery, headers ) -> BucketListing
List Buckets
List authorized buckets.
from pprint import pprint
# Import the waylay-client from the waylay-sdk-core package
from waylay.sdk.client import WaylayClient
from waylay.sdk.api.api_exceptions import ApiError
# Intialize a waylay client instance
waylay_client = WaylayClient.from_profile()
# Note that the typed model classes for responses/parameters/... are only available when `waylay-sdk-storage-types` is installed
from waylay.services.storage.models.bucket_listing import BucketListing
try:
# List Buckets
# calls `GET /storage/v1/bucket`
api_response = await waylay_client.storage.bucket.list(
# query parameters:
query = {
},
)
print("The response of storage.bucket.list:\n")
pprint(api_response)
except ApiError as e:
print("Exception when calling storage.bucket.list: %s\n" % e)
GET /storage/v1/bucket
Name | Type | API binding | Description | Notes |
---|---|---|---|---|
query | QueryParamTypes | None | URL query parameter | ||
query['store'] (dict) query.store (Query) |
str | query parameter "store" |
[optional] | |
headers | HeaderTypes | request headers |
Selected path param | Raw response param | Return Type | Description | Links |
---|---|---|---|---|
Literal[""] (default) | False (default) | BucketListing |
BucketListing | |
str | False (default) | Any |
If any other string value for the selected path is provided, the exact type of the response will only be known at runtime. | |
/ | True | Response |
The raw http response object. |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful Response | - |
422 | Validation Error | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]