From 24d4133790104081091c0133e6e976d97963902c Mon Sep 17 00:00:00 2001 From: "R.A. Stern" Date: Fri, 10 May 2019 15:38:28 -0400 Subject: [PATCH 1/2] Add get_group_entities method --- vmtconnect/vmtconnect.py | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/vmtconnect/vmtconnect.py b/vmtconnect/vmtconnect.py index b8a71b0..0d766ff 100644 --- a/vmtconnect/vmtconnect.py +++ b/vmtconnect/vmtconnect.py @@ -845,15 +845,25 @@ def get_group_by_name(self, name): if grp['displayName'] == name: return [grp] + def get_group_entities(self, uuid): + """Returns a detailed list of member entities that belong to the group. + + Args: + uuid (str): Group UUID. + + Returns: + A list containing all members of the group and their related consumers. + """ + return self.request('groups/{}/entities'.format(uuid)) + def get_group_members(self, uuid): - """Returns a list of member entities that belong to the group. + """Returns a list of members that belong to the group. Args: uuid (str): Group UUID. Returns: - A list containing all members of the group, of the appropriate group - type. + A list containing all members of the group. """ return self.request('groups/{}/members'.format(uuid)) From 7f388cfe26caa9cd40e81d6712d908eaddb517bb Mon Sep 17 00:00:00 2001 From: "R.A. Stern" Date: Fri, 10 May 2019 15:41:17 -0400 Subject: [PATCH 2/2] Bump version for release --- vmtconnect/__about__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vmtconnect/__about__.py b/vmtconnect/__about__.py index b880d90..2f785e2 100644 --- a/vmtconnect/__about__.py +++ b/vmtconnect/__about__.py @@ -13,7 +13,7 @@ __title__ = 'vmtconnect' __description__ = 'Turbonomic API Client' -__version__ = '3.0.1.dev' +__version__ = '3.0.2' __author__ = 'R.A. Stern' __author_email__ = 'rastern@gmail.com' __license__ = 'Apache 2.0'