aboutsummaryrefslogtreecommitdiffstats
path: root/src/onapsdk
diff options
context:
space:
mode:
authorMicha? Jagie??o <michal.jagiello@t-mobile.pl>2023-10-16 10:47:13 +0000
committerGerrit Code Review <gerrit@onap.org>2023-10-16 10:47:13 +0000
commitb9b646a6fdaad61cb239ef99a9b52c75ec22db99 (patch)
tree95a28068b11a6ee935115f28328883496a6a08e3 /src/onapsdk
parentb013514e27ddbb34b7b44119d83f42e9f3b09033 (diff)
parent4e3e660024cfea7e145d79fabf3233d8895329f8 (diff)
Merge "Add delete-anchor method for cps"
Diffstat (limited to 'src/onapsdk')
-rw-r--r--src/onapsdk/cps/dataspace.py14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/onapsdk/cps/dataspace.py b/src/onapsdk/cps/dataspace.py
index e574866..df5a83c 100644
--- a/src/onapsdk/cps/dataspace.py
+++ b/src/onapsdk/cps/dataspace.py
@@ -179,6 +179,20 @@ class Dataspace(CpsElement):
dataspace=self))
@exception_handler
+ def delete_anchor(self, anchor_name: str) -> None:
+ """Delete dataspace anchor by name.
+
+ Args:
+ anchor_name (str): Anchor name.
+ """
+ self.send_message(
+ "DELETE",
+ f"Delete {anchor_name} anchor",
+ f"{self.url}/anchors/{anchor_name}",
+ auth=self.auth
+ )
+
+ @exception_handler
def get_schema_set(self, schema_set_name: str) -> SchemaSet:
"""Get schema set by name.