From 96b5b9126e739db9c2a0e8602c73afe0a077cfe9 Mon Sep 17 00:00:00 2001 From: Victor Jouffrey <37411285+vatj@users.noreply.github.com> Date: Thu, 18 Apr 2024 15:41:03 +0200 Subject: [PATCH] Revert "[HWORKS-1152] Add add_tag method + deprectation warning (#224)" (#225) This reverts commit 19fd3b7a2b11e274f1a1082ef329994069710413. --- python/hsml/model.py | 23 ----------------------- 1 file changed, 23 deletions(-) diff --git a/python/hsml/model.py b/python/hsml/model.py index 40f2cad06..aa5d2b549 100644 --- a/python/hsml/model.py +++ b/python/hsml/model.py @@ -15,7 +15,6 @@ # import json -import warnings import humps from typing import Union, Optional @@ -428,28 +427,6 @@ def set_tag(self, name: str, value: Union[str, dict]): A tag consists of a pair. Tag names are unique identifiers across the whole cluster. The value of a tag can be any valid json - primitives, arrays or json objects. - !!! warning - This method is deprecated and will be remove in 4.0, please use `add_tag` instead. - - # Arguments - name: Name of the tag to be added. - value: Value of the tag to be added. - # Raises - `RestAPIError` in case the backend fails to add the tag. - """ - warnings.warn( - "Using set_tag is deprecated, please use add_tag instead.", - DeprecationWarning, - stacklevel=1, - ) - self._model_engine.set_tag(self, name, value) - - def add_tag(self, name: str, value: Union[str, dict]) -> None: - """Attach a tag to a model. - - A tag consists of a pair. Tag names are unique identifiers across the whole cluster. - The value of a tag can be any valid json - primitives, arrays or json objects. - # Arguments name: Name of the tag to be added. value: Value of the tag to be added.