Skip to content

Commit 21f1afc

Browse files
committed
Update the license data model
1 parent e9f0d70 commit 21f1afc

File tree

1 file changed

+29
-4
lines changed

1 file changed

+29
-4
lines changed

webexteamssdk/models/mixins/license.py

Lines changed: 29 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,19 +39,44 @@ class LicenseBasicPropertiesMixin(object):
3939
@property
4040
def id(self):
4141
"""A unique identifier for the license."""
42-
return self._json_data.get('id')
42+
return self._json_data.get("id")
4343

4444
@property
4545
def name(self):
4646
"""Name of the licensed feature."""
47-
return self._json_data.get('name')
47+
return self._json_data.get("name")
4848

4949
@property
5050
def totalUnits(self):
5151
"""Total number of license units allocated."""
52-
return self._json_data.get('totalUnits')
52+
return self._json_data.get("totalUnits")
5353

5454
@property
5555
def consumedUnits(self):
5656
"""Total number of license units consumed."""
57-
return self._json_data.get('consumedUnits')
57+
return self._json_data.get("consumedUnits")
58+
59+
@property
60+
def subscriptionId(self):
61+
"""The subscription ID associated with this license.
62+
63+
This ID is used in other systems, such as Webex Control Hub.
64+
"""
65+
return self._json_data.get("subscriptionId")
66+
67+
@property
68+
def siteUrl(self):
69+
"""The Webex Meetings site associated with this license."""
70+
return self._json_data.get("siteUrl")
71+
72+
@property
73+
def siteType(self):
74+
"""The type of site associated with this license.
75+
76+
`Control Hub managed site` the site is managed by Webex Control Hub.
77+
78+
`Linked site` the site is a linked site
79+
80+
`Site Admin managed site` the site is managed by Site Administration
81+
"""
82+
return self._json_data.get("siteType")

0 commit comments

Comments
 (0)