All URIs are relative to https://api.waylay.io
Method | HTTP request | Description |
---|---|---|
get | GET /registry/v2/tags/{tagName} | Get |
list | GET /registry/v2/tags/ | List |
remove | DELETE /registry/v2/tags/ | Remove Unused |
get( tag_name: str, headers ) -> FunctionTagResponse
Get
Get the metadata of a function Tag by name.
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-registry-types` is installed
from waylay.services.registry.models.function_tag_response import FunctionTagResponse
try:
# Get
# calls `GET /registry/v2/tags/{tagName}`
api_response = await waylay_client.registry.tags.get(
'tag_name_example', # tag_name | path param "tagName"
)
print("The response of registry.tags.get:\n")
pprint(api_response)
except ApiError as e:
print("Exception when calling registry.tags.get: %s\n" % e)
GET /registry/v2/tags/{tagName}
Name | Type | API binding | Description | Notes |
---|---|---|---|---|
tag_name | str | path parameter "tagName" |
The name of the tag that might be applied to a function. | |
headers | HeaderTypes | request headers |
Selected path param | Raw response param | Return Type | Description | Links |
---|---|---|---|---|
Literal[""] (default) | False (default) | FunctionTagResponse |
FunctionTagResponse | |
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 | Default Response | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
list( query: ListQuery, headers ) -> FunctionTagsResponse
List
List tags used on any plug, webscript or model.
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-registry-types` is installed
from waylay.services.registry.models.function_tags_response import FunctionTagsResponse
try:
# List
# calls `GET /registry/v2/tags/`
api_response = await waylay_client.registry.tags.list(
# query parameters:
query = {
'name': '*-demo-??'
'color': '#4153ea'
},
)
print("The response of registry.tags.list:\n")
pprint(api_response)
except ApiError as e:
print("Exception when calling registry.tags.list: %s\n" % e)
GET /registry/v2/tags/
Name | Type | API binding | Description | Notes |
---|---|---|---|---|
query | QueryParamTypes | None | URL query parameter | ||
query['name'] (dict) query.name (Query) |
str | query parameter "name" |
If set, filters on the <code>name</code> of a tag. Supports <code>*</code> and <code>?</code> wildcards and is case-insensitive. | [optional] |
query['color'] (dict) query.color (Query) |
str | query parameter "color" |
If set, filters on the <code>color</code> of a tag. Uses an exact match. | [optional] |
headers | HeaderTypes | request headers |
Selected path param | Raw response param | Return Type | Description | Links |
---|---|---|---|---|
Literal[""] (default) | False (default) | FunctionTagsResponse |
FunctionTagsResponse | |
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 | Default Response | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
remove( headers ) -> FunctionTagsResponse
Remove Unused
Remove tags that are not referenced by any plug, webscript or model. This is normally executed as background task.
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-registry-types` is installed
from waylay.services.registry.models.function_tags_response import FunctionTagsResponse
try:
# Remove Unused
# calls `DELETE /registry/v2/tags/`
api_response = await waylay_client.registry.tags.remove(
)
print("The response of registry.tags.remove:\n")
pprint(api_response)
except ApiError as e:
print("Exception when calling registry.tags.remove: %s\n" % e)
DELETE /registry/v2/tags/
This endpoint does not need any parameter. headers | HeaderTypes | request headers | |
Selected path param | Raw response param | Return Type | Description | Links |
---|---|---|---|---|
Literal[""] (default) | False (default) | FunctionTagsResponse |
FunctionTagsResponse | |
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 | Default Response | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]