Skip to content

Latest commit

 

History

History
1064 lines (823 loc) · 40.9 KB

ModelTagsApi.md

File metadata and controls

1064 lines (823 loc) · 40.9 KB

waylay.services.registry.ModelTagsApi

All URIs are relative to https://api.waylay.io

Method HTTP request Description
add_all PATCH /registry/v2/models/{name}/tags Add Tags On All
add PATCH /registry/v2/models/{name}/versions/{version}/tags Add Tags
clear_all DELETE /registry/v2/models/{name}/tags Clear Tags On Any/All
clear DELETE /registry/v2/models/{name}/versions/{version}/tags Clear Tags
find_all GET /registry/v2/models/{name}/tags/{tagName} Find Tags On Any/All
find GET /registry/v2/models/{name}/versions/{version}/tags/{tagName} Find Tag
list_all GET /registry/v2/models/{name}/tags List Tags On Any/All
list GET /registry/v2/models/{name}/versions/{version}/tags List Tags
put_all PUT /registry/v2/models/{name}/tags/{tagName} Put Tag On All
put PUT /registry/v2/models/{name}/versions/{version}/tags/{tagName} Put Tag
remove_all DELETE /registry/v2/models/{name}/tags/{tagName} Remove Tag On Any/All
remove DELETE /registry/v2/models/{name}/versions/{version}/tags/{tagName} Remove Tag
replace_all PUT /registry/v2/models/{name}/tags Replace Tags On Any/All
replace PUT /registry/v2/models/{name}/versions/{version}/tags Replace Tags

add_all

add_all( name: str, headers ) -> FunctionTagsResponse

Add Tags On All

Add tags to all versions of a named model version.

Example

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
from waylay.services.registry.models.update_tags_request_v2 import UpdateTagsRequestV2
try:
    # Add Tags On All
    # calls `PATCH /registry/v2/models/{name}/tags`
    api_response = await waylay_client.registry.model_tags.add_all(
        'name_example', # name | path param "name"
        # json data: use a generated model or a json-serializable python data structure (dict, list)
        json = waylay.services.registry.UpdateTagsRequestV2() # UpdateTagsRequestV2 |  (optional)
    )
    print("The response of registry.model_tags.add_all:\n")
    pprint(api_response)
except ApiError as e:
    print("Exception when calling registry.model_tags.add_all: %s\n" % e)

Endpoint

PATCH /registry/v2/models/{name}/tags

Parameters

Name Type API binding Description Notes
name str path parameter "name" The name of the function.
json UpdateTagsRequestV2 json request body [optional]
headers HeaderTypes request headers

Return type

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.

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

HTTP response details

Status code Description Response headers
200 Default Response -

[Back to top] [Back to API list] [Back to Model list] [Back to README]

add

add( name: str, version: str, headers ) -> FunctionTagsResponse

Add Tags

Add tags used on a model version.

Example

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
from waylay.services.registry.models.update_tags_request_v2 import UpdateTagsRequestV2
try:
    # Add Tags
    # calls `PATCH /registry/v2/models/{name}/versions/{version}/tags`
    api_response = await waylay_client.registry.model_tags.add(
        'name_example', # name | path param "name"
        'version_example', # version | path param "version"
        # json data: use a generated model or a json-serializable python data structure (dict, list)
        json = waylay.services.registry.UpdateTagsRequestV2() # UpdateTagsRequestV2 |  (optional)
    )
    print("The response of registry.model_tags.add:\n")
    pprint(api_response)
except ApiError as e:
    print("Exception when calling registry.model_tags.add: %s\n" % e)

Endpoint

PATCH /registry/v2/models/{name}/versions/{version}/tags

Parameters

Name Type API binding Description Notes
name str path parameter "name" The name of the function.
version str path parameter "version" The version of the function.
json UpdateTagsRequestV2 json request body [optional]
headers HeaderTypes request headers

Return type

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.

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

HTTP response details

Status code Description Response headers
200 Default Response -

[Back to top] [Back to API list] [Back to Model list] [Back to README]

clear_all

clear_all( name: str, query: ClearAllQuery, headers ) -> FunctionTagsResponse

Clear Tags On Any/All

Remove all tags used on any or all versions of a named model. With 'from=all', a tag is only removed when it was set to all versions.

Example

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
from waylay.services.registry.models.tagging_scope_option import TaggingScopeOption
try:
    # Clear Tags On Any/All
    # calls `DELETE /registry/v2/models/{name}/tags`
    api_response = await waylay_client.registry.model_tags.clear_all(
        'name_example', # name | path param "name"
        # query parameters:
        query = {
            'scope': 'any'
        },
    )
    print("The response of registry.model_tags.clear_all:\n")
    pprint(api_response)
except ApiError as e:
    print("Exception when calling registry.model_tags.clear_all: %s\n" % e)

Endpoint

DELETE /registry/v2/models/{name}/tags

Parameters

Name Type API binding Description Notes
name str path parameter "name" The name of the function.
query QueryParamTypes | None URL query parameter
query['scope'] (dict)
query.scope (Query)
TaggingScopeOption query parameter "scope" Tagging operations on a named function can either operate on - `any` versions: operate on tags that are are associated on any version (union) - `all` versions: operate on tags that are are associated with all versions (intersection) [optional]
headers HeaderTypes request headers

Return type

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.

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

HTTP response details

Status code Description Response headers
200 Default Response -

[Back to top] [Back to API list] [Back to Model list] [Back to README]

clear

clear( name: str, version: str, headers ) -> FunctionTagsResponse

Clear Tags

Remove all tags used on a model version.

Example

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:
    # Clear Tags
    # calls `DELETE /registry/v2/models/{name}/versions/{version}/tags`
    api_response = await waylay_client.registry.model_tags.clear(
        'name_example', # name | path param "name"
        'version_example', # version | path param "version"
    )
    print("The response of registry.model_tags.clear:\n")
    pprint(api_response)
except ApiError as e:
    print("Exception when calling registry.model_tags.clear: %s\n" % e)

Endpoint

DELETE /registry/v2/models/{name}/versions/{version}/tags

Parameters

Name Type API binding Description Notes
name str path parameter "name" The name of the function.
version str path parameter "version" The version of the function.
headers HeaderTypes request headers

Return type

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.

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

HTTP response details

Status code Description Response headers
200 Default Response -

[Back to top] [Back to API list] [Back to Model list] [Back to README]

find_all

find_all( tag_name: str, name: str, query: FindAllQuery, headers ) -> FunctionTagResponse

Find Tags On Any/All

Check the existence of a tag on any or all versions of a named model.

Example

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
from waylay.services.registry.models.tagging_scope_option import TaggingScopeOption
try:
    # Find Tags On Any/All
    # calls `GET /registry/v2/models/{name}/tags/{tagName}`
    api_response = await waylay_client.registry.model_tags.find_all(
        'tag_name_example', # tag_name | path param "tagName"
        'name_example', # name | path param "name"
        # query parameters:
        query = {
            'scope': 'any'
        },
    )
    print("The response of registry.model_tags.find_all:\n")
    pprint(api_response)
except ApiError as e:
    print("Exception when calling registry.model_tags.find_all: %s\n" % e)

Endpoint

GET /registry/v2/models/{name}/tags/{tagName}

Parameters

Name Type API binding Description Notes
tag_name str path parameter "tagName" The name of the tag that might be applied to a function.
name str path parameter "name" The name of the function.
query QueryParamTypes | None URL query parameter
query['scope'] (dict)
query.scope (Query)
TaggingScopeOption query parameter "scope" Tagging operations on a named function can either operate on - `any` versions: operate on tags that are are associated on any version (union) - `all` versions: operate on tags that are are associated with all versions (intersection) [optional]
headers HeaderTypes request headers

Return type

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.

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

HTTP response details

Status code Description Response headers
200 Default Response -
404 Default Response -

[Back to top] [Back to API list] [Back to Model list] [Back to README]

find

find( tag_name: str, name: str, version: str, headers ) -> FunctionTagResponse

Find Tag

Check the existence of a tag on a model version.

Example

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:
    # Find Tag
    # calls `GET /registry/v2/models/{name}/versions/{version}/tags/{tagName}`
    api_response = await waylay_client.registry.model_tags.find(
        'tag_name_example', # tag_name | path param "tagName"
        'name_example', # name | path param "name"
        'version_example', # version | path param "version"
    )
    print("The response of registry.model_tags.find:\n")
    pprint(api_response)
except ApiError as e:
    print("Exception when calling registry.model_tags.find: %s\n" % e)

Endpoint

GET /registry/v2/models/{name}/versions/{version}/tags/{tagName}

Parameters

Name Type API binding Description Notes
tag_name str path parameter "tagName" The name of the tag that might be applied to a function.
name str path parameter "name" The name of the function.
version str path parameter "version" The version of the function.
headers HeaderTypes request headers

Return type

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.

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

HTTP response details

Status code Description Response headers
200 Default Response -
404 Default Response -

[Back to top] [Back to API list] [Back to Model list] [Back to README]

list_all

list_all( name: str, query: ListAllQuery, headers ) -> FunctionTagsResponse

List Tags On Any/All

List tags used on any or all versions of a named model. With 'from=all', only the tags that are set to all versions are returned.

Example

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
from waylay.services.registry.models.tagging_scope_option import TaggingScopeOption
try:
    # List Tags On Any/All
    # calls `GET /registry/v2/models/{name}/tags`
    api_response = await waylay_client.registry.model_tags.list_all(
        'name_example', # name | path param "name"
        # query parameters:
        query = {
            'scope': 'any'
        },
    )
    print("The response of registry.model_tags.list_all:\n")
    pprint(api_response)
except ApiError as e:
    print("Exception when calling registry.model_tags.list_all: %s\n" % e)

Endpoint

GET /registry/v2/models/{name}/tags

Parameters

Name Type API binding Description Notes
name str path parameter "name" The name of the function.
query QueryParamTypes | None URL query parameter
query['scope'] (dict)
query.scope (Query)
TaggingScopeOption query parameter "scope" Tagging operations on a named function can either operate on - `any` versions: operate on tags that are are associated on any version (union) - `all` versions: operate on tags that are are associated with all versions (intersection) [optional]
headers HeaderTypes request headers

Return type

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.

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

HTTP response details

Status code Description Response headers
200 Default Response -

[Back to top] [Back to API list] [Back to Model list] [Back to README]

list

list( name: str, version: str, headers ) -> FunctionTagsResponse

List Tags

List tags used on a model version.

Example

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 Tags
    # calls `GET /registry/v2/models/{name}/versions/{version}/tags`
    api_response = await waylay_client.registry.model_tags.list(
        'name_example', # name | path param "name"
        'version_example', # version | path param "version"
    )
    print("The response of registry.model_tags.list:\n")
    pprint(api_response)
except ApiError as e:
    print("Exception when calling registry.model_tags.list: %s\n" % e)

Endpoint

GET /registry/v2/models/{name}/versions/{version}/tags

Parameters

Name Type API binding Description Notes
name str path parameter "name" The name of the function.
version str path parameter "version" The version of the function.
headers HeaderTypes request headers

Return type

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.

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

HTTP response details

Status code Description Response headers
200 Default Response -

[Back to top] [Back to API list] [Back to Model list] [Back to README]

put_all

put_all( tag_name: str, name: str, headers ) -> FunctionTagResponse

Put Tag On All

Add a tag on on all versions of a model version.

Example

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:
    # Put Tag On All
    # calls `PUT /registry/v2/models/{name}/tags/{tagName}`
    api_response = await waylay_client.registry.model_tags.put_all(
        'tag_name_example', # tag_name | path param "tagName"
        'name_example', # name | path param "name"
    )
    print("The response of registry.model_tags.put_all:\n")
    pprint(api_response)
except ApiError as e:
    print("Exception when calling registry.model_tags.put_all: %s\n" % e)

Endpoint

PUT /registry/v2/models/{name}/tags/{tagName}

Parameters

Name Type API binding Description Notes
tag_name str path parameter "tagName" The name of the tag that might be applied to a function.
name str path parameter "name" The name of the function.
headers HeaderTypes request headers

Return type

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.

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

HTTP response details

Status code Description Response headers
200 Default Response -

[Back to top] [Back to API list] [Back to Model list] [Back to README]

put

put( tag_name: str, name: str, version: str, headers ) -> FunctionTagResponse

Put Tag

Put a tag on a model version.

Example

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:
    # Put Tag
    # calls `PUT /registry/v2/models/{name}/versions/{version}/tags/{tagName}`
    api_response = await waylay_client.registry.model_tags.put(
        'tag_name_example', # tag_name | path param "tagName"
        'name_example', # name | path param "name"
        'version_example', # version | path param "version"
    )
    print("The response of registry.model_tags.put:\n")
    pprint(api_response)
except ApiError as e:
    print("Exception when calling registry.model_tags.put: %s\n" % e)

Endpoint

PUT /registry/v2/models/{name}/versions/{version}/tags/{tagName}

Parameters

Name Type API binding Description Notes
tag_name str path parameter "tagName" The name of the tag that might be applied to a function.
name str path parameter "name" The name of the function.
version str path parameter "version" The version of the function.
headers HeaderTypes request headers

Return type

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.

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

HTTP response details

Status code Description Response headers
200 Default Response -

[Back to top] [Back to API list] [Back to Model list] [Back to README]

remove_all

remove_all( tag_name: str, name: str, headers ) -> FunctionTagResponse

Remove Tag On Any/All

Remove a tag on any or all version from a model version. With 'from=all', the tag is only removed when it exists on all versions.

Example

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:
    # Remove Tag On Any/All
    # calls `DELETE /registry/v2/models/{name}/tags/{tagName}`
    api_response = await waylay_client.registry.model_tags.remove_all(
        'tag_name_example', # tag_name | path param "tagName"
        'name_example', # name | path param "name"
    )
    print("The response of registry.model_tags.remove_all:\n")
    pprint(api_response)
except ApiError as e:
    print("Exception when calling registry.model_tags.remove_all: %s\n" % e)

Endpoint

DELETE /registry/v2/models/{name}/tags/{tagName}

Parameters

Name Type API binding Description Notes
tag_name str path parameter "tagName" The name of the tag that might be applied to a function.
name str path parameter "name" The name of the function.
headers HeaderTypes request headers

Return type

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.

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

HTTP response details

Status code Description Response headers
200 Default Response -
404 Default Response -

[Back to top] [Back to API list] [Back to Model list] [Back to README]

remove

remove( tag_name: str, name: str, version: str, headers ) -> FunctionTagResponse

Remove Tag

Remove a tag from a model version.

Example

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:
    # Remove Tag
    # calls `DELETE /registry/v2/models/{name}/versions/{version}/tags/{tagName}`
    api_response = await waylay_client.registry.model_tags.remove(
        'tag_name_example', # tag_name | path param "tagName"
        'name_example', # name | path param "name"
        'version_example', # version | path param "version"
    )
    print("The response of registry.model_tags.remove:\n")
    pprint(api_response)
except ApiError as e:
    print("Exception when calling registry.model_tags.remove: %s\n" % e)

Endpoint

DELETE /registry/v2/models/{name}/versions/{version}/tags/{tagName}

Parameters

Name Type API binding Description Notes
tag_name str path parameter "tagName" The name of the tag that might be applied to a function.
name str path parameter "name" The name of the function.
version str path parameter "version" The version of the function.
headers HeaderTypes request headers

Return type

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.

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

HTTP response details

Status code Description Response headers
200 Default Response -
404 Default Response -

[Back to top] [Back to API list] [Back to Model list] [Back to README]

replace_all

replace_all( name: str, query: ReplaceAllQuery, headers ) -> FunctionTagsResponse

Replace Tags On Any/All

Replace tags used on any or all versions of a named model. With 'from=all', only the tags that were set to all versions are replaced.

Example

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
from waylay.services.registry.models.tagging_scope_option import TaggingScopeOption
from waylay.services.registry.models.update_tags_request_v2 import UpdateTagsRequestV2
try:
    # Replace Tags On Any/All
    # calls `PUT /registry/v2/models/{name}/tags`
    api_response = await waylay_client.registry.model_tags.replace_all(
        'name_example', # name | path param "name"
        # query parameters:
        query = {
            'scope': 'any'
        },
        # json data: use a generated model or a json-serializable python data structure (dict, list)
        json = waylay.services.registry.UpdateTagsRequestV2() # UpdateTagsRequestV2 |  (optional)
    )
    print("The response of registry.model_tags.replace_all:\n")
    pprint(api_response)
except ApiError as e:
    print("Exception when calling registry.model_tags.replace_all: %s\n" % e)

Endpoint

PUT /registry/v2/models/{name}/tags

Parameters

Name Type API binding Description Notes
name str path parameter "name" The name of the function.
json UpdateTagsRequestV2 json request body [optional]
query QueryParamTypes | None URL query parameter
query['scope'] (dict)
query.scope (Query)
TaggingScopeOption query parameter "scope" Tagging operations on a named function can either operate on - `any` versions: operate on tags that are are associated on any version (union) - `all` versions: operate on tags that are are associated with all versions (intersection) [optional]
headers HeaderTypes request headers

Return type

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.

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

HTTP response details

Status code Description Response headers
200 Default Response -

[Back to top] [Back to API list] [Back to Model list] [Back to README]

replace

replace( name: str, version: str, headers ) -> FunctionTagsResponse

Replace Tags

Replace tags used on a model version.

Example

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
from waylay.services.registry.models.update_tags_request_v2 import UpdateTagsRequestV2
try:
    # Replace Tags
    # calls `PUT /registry/v2/models/{name}/versions/{version}/tags`
    api_response = await waylay_client.registry.model_tags.replace(
        'name_example', # name | path param "name"
        'version_example', # version | path param "version"
        # json data: use a generated model or a json-serializable python data structure (dict, list)
        json = waylay.services.registry.UpdateTagsRequestV2() # UpdateTagsRequestV2 |  (optional)
    )
    print("The response of registry.model_tags.replace:\n")
    pprint(api_response)
except ApiError as e:
    print("Exception when calling registry.model_tags.replace: %s\n" % e)

Endpoint

PUT /registry/v2/models/{name}/versions/{version}/tags

Parameters

Name Type API binding Description Notes
name str path parameter "name" The name of the function.
version str path parameter "version" The version of the function.
json UpdateTagsRequestV2 json request body [optional]
headers HeaderTypes request headers

Return type

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.

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

HTTP response details

Status code Description Response headers
200 Default Response -

[Back to top] [Back to API list] [Back to Model list] [Back to README]