@@ -79,7 +79,7 @@ def list(
79
79
type = None ,
80
80
sortBy = None ,
81
81
max = 100 ,
82
- ** request_parameters
82
+ ** request_parameters ,
83
83
):
84
84
"""List rooms.
85
85
@@ -138,7 +138,17 @@ def list(
138
138
for item in items :
139
139
yield self ._object_factory (OBJECT_TYPE , item )
140
140
141
- def create (self , title , teamId = None , ** request_parameters ):
141
+ def create (
142
+ self ,
143
+ title ,
144
+ teamId = None ,
145
+ classificationId = None ,
146
+ isLocked = None ,
147
+ isPublic = None ,
148
+ description = None ,
149
+ isAnnouncementOnly = None ,
150
+ ** request_parameters ,
151
+ ):
142
152
"""Create a room.
143
153
144
154
The authenticated user is automatically added as a member of the room.
@@ -147,6 +157,15 @@ def create(self, title, teamId=None, **request_parameters):
147
157
title(basestring): A user-friendly name for the room.
148
158
teamId(basestring): The team ID with which this room is
149
159
associated.
160
+ classificationId(basestring): The classification ID for the room.
161
+ isLocked(bool): Set the space as locked/moderated and the creator
162
+ becomes a moderator.
163
+ isPublic(bool): The room is public and therefore discoverable
164
+ within the org. Anyone can find and join that room. When `true`
165
+ the description must be filled in.
166
+ description(basestring): The description of the space.
167
+ isAnnouncementOnly(bool): Sets the space into Announcement Mode or
168
+ clears the Announcement Mode (`false`).
150
169
**request_parameters: Additional request parameters (provides
151
170
support for parameters that may be added in the future).
152
171
@@ -158,8 +177,13 @@ def create(self, title, teamId=None, **request_parameters):
158
177
ApiError: If the Webex Teams cloud returns an error.
159
178
160
179
"""
161
- check_type (title , basestring , optional = True )
180
+ check_type (title , basestring )
162
181
check_type (teamId , basestring , optional = True )
182
+ check_type (classificationId , basestring , optional = True )
183
+ check_type (isLocked , bool , optional = True )
184
+ check_type (isPublic , bool , optional = True )
185
+ check_type (description , basestring , optional = True )
186
+ check_type (isAnnouncementOnly , bool , optional = True )
163
187
164
188
post_data = dict_from_items_with_values (
165
189
request_parameters ,
@@ -221,12 +245,39 @@ def get_meeting_info(self, roomId):
221
245
# Return a room meeting info object created from the response JSON data
222
246
return self ._object_factory ("room_meeting_info" , json_data )
223
247
224
- def update (self , roomId , title , ** request_parameters ):
248
+ def update (
249
+ self ,
250
+ roomId ,
251
+ title ,
252
+ classificationId = None ,
253
+ teamId = None ,
254
+ isLocked = None ,
255
+ isPublic = None ,
256
+ description = None ,
257
+ isAnnouncementOnly = None ,
258
+ isReadOnly = None ,
259
+ ** request_parameters ,
260
+ ):
225
261
"""Update details for a room, by ID.
226
262
227
263
Args:
228
264
roomId(basestring): The room ID.
229
265
title(basestring): A user-friendly name for the room.
266
+ classificationId(basestring): The classification ID for the room.
267
+ teamId(basestring): The teamId to which this space should be
268
+ assigned. Only unowned spaces can be assigned to a team.
269
+ Assignment between teams is unsupported.
270
+ isLocked(bool): Set the space as locked/moderated and the creator
271
+ becomes a moderator.
272
+ isPublic(bool): The room is public and therefore discoverable
273
+ within the org. Anyone can find and join that room. When `true`
274
+ the description must be filled in.
275
+ description(basestring): The description of the space.
276
+ isAnnouncementOnly(bool): Sets the space into Announcement Mode or
277
+ clears the Announcement Mode (`false`).
278
+ isReadOnly(bool): A compliance officer can set a direct room as
279
+ read-only, which will disallow any new information exchanges in
280
+ this space, while maintaining historical data.
230
281
**request_parameters: Additional request parameters (provides
231
282
support for parameters that may be added in the future).
232
283
@@ -240,10 +291,24 @@ def update(self, roomId, title, **request_parameters):
240
291
"""
241
292
check_type (roomId , basestring )
242
293
check_type (title , basestring )
294
+ check_type (classificationId , basestring , optional = True )
295
+ check_type (teamId , basestring , optional = True )
296
+ check_type (isLocked , bool , optional = True )
297
+ check_type (isPublic , bool , optional = True )
298
+ check_type (description , basestring , optional = True )
299
+ check_type (isAnnouncementOnly , bool , optional = True )
300
+ check_type (isReadOnly , bool , optional = True )
243
301
244
302
put_data = dict_from_items_with_values (
245
303
request_parameters ,
246
304
title = title ,
305
+ classificationId = classificationId ,
306
+ teamId = teamId ,
307
+ isLocked = isLocked ,
308
+ isPublic = isPublic ,
309
+ description = description ,
310
+ isAnnouncementOnly = isAnnouncementOnly ,
311
+ isReadOnly = isReadOnly ,
247
312
)
248
313
249
314
# API request
0 commit comments