From 0b3708a484f50344757bec2a2e506bee22d2d5cc Mon Sep 17 00:00:00 2001 From: Anton Chevychalov Date: Mon, 27 Jan 2020 16:24:09 +0300 Subject: [PATCH] ADCM-1012 add functions to view and accept license --- adcm_client/objects.py | 6 ++++++ setup.py | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/adcm_client/objects.py b/adcm_client/objects.py index 48a88e2..e485f61 100644 --- a/adcm_client/objects.py +++ b/adcm_client/objects.py @@ -126,6 +126,12 @@ def cluster(self, **args) -> "Cluster": raise IncorrectPrototypeType return prototype.cluster(**args) + def license(self): + return self._subcall("license", "read") + + def license_accept(self): + self._subcall("license", "accept", "update") + class BundleList(BaseAPIListObject): _ENTRY_CLASS = Bundle diff --git a/setup.py b/setup.py index d169bbc..bad3eb7 100644 --- a/setup.py +++ b/setup.py @@ -20,7 +20,7 @@ setuptools.setup( name="adcm_client", - version="2019.12.16.15", + version="2020.01.27.16", author="Anton Chevychalov", author_email="cab@arenadata.io", description="ArenaData Cluster Manager Client",