From ea3916f519f2a48f968632468ec917e46f7e00b1 Mon Sep 17 00:00:00 2001 From: Chris Lunsford Date: Fri, 1 Nov 2024 23:48:26 -0400 Subject: [PATCH 1/2] feat(Room): add additional properties --- src/webexpythonsdk/models/mixins/room.py | 42 ++++++++++++++++++++++++ 1 file changed, 42 insertions(+) diff --git a/src/webexpythonsdk/models/mixins/room.py b/src/webexpythonsdk/models/mixins/room.py index b2d3b0f..44e0127 100644 --- a/src/webexpythonsdk/models/mixins/room.py +++ b/src/webexpythonsdk/models/mixins/room.py @@ -85,3 +85,45 @@ def created(self): def ownerId(self): """The ID of the organization which owns this room.""" return self._json_data.get("ownerId") + + @property + def classificationId(self): + """The ID of the current classification.""" + return self._json_data.get("ownerId") + + @property + def isAnnouncementOnly(self): + """Indicates when a space is in Announcement Mode (only moderators can post).""" + return self._json_data.get("ownerId") + + @property + def isReadOnly(self): + """Room is read-only. + + A compliance officer can set a direct room as read-only, which will disallow any + new information exchanges in this space, while maintaining historical data. + """ + return self._json_data.get("ownerId") + + @property + def isPublic(self): + """Room is public. + + The room is public and therefore discoverable within the org. Anyone can find + and join the room. + """ + return self._json_data.get("ownerId") + + @property + def madePublic(self): + """Date and time when the room was made public.""" + made_public = self._json_data.get("created") + if made_public: + return WebexDateTime.strptime(made_public) + else: + return None + + @property + def description(self): + """The description of the room.""" + return self._json_data.get("ownerId") From 1e13d2e8862cd5f787b413da722ab67b66ba85de Mon Sep 17 00:00:00 2001 From: Chris Lunsford Date: Sat, 2 Nov 2024 00:00:28 -0400 Subject: [PATCH 2/2] fix(rooms API): add missing create room args to post_data --- src/webexpythonsdk/api/rooms.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/webexpythonsdk/api/rooms.py b/src/webexpythonsdk/api/rooms.py index 3e3a9e5..389de3b 100644 --- a/src/webexpythonsdk/api/rooms.py +++ b/src/webexpythonsdk/api/rooms.py @@ -176,6 +176,11 @@ def create( request_parameters, title=title, teamId=teamId, + classificationId=classificationId, + isLocked=isLocked, + isPublic=isPublic, + description=description, + isAnnouncementOnly=isAnnouncementOnly, ) # API request