22
22
SOFTWARE.
23
23
"""
24
24
25
-
26
25
from __future__ import (
27
26
absolute_import ,
28
27
division ,
@@ -80,7 +79,7 @@ def list(
80
79
id = None ,
81
80
orgId = None ,
82
81
max = None ,
83
- ** request_parameters
82
+ ** request_parameters ,
84
83
):
85
84
"""List people in your organization.
86
85
@@ -150,21 +149,35 @@ def list(
150
149
def create (
151
150
self ,
152
151
emails ,
152
+ phoneNumbers = None ,
153
+ extension = None ,
154
+ locationId = None ,
153
155
displayName = None ,
154
156
firstName = None ,
155
157
lastName = None ,
156
158
avatar = None ,
157
159
orgId = None ,
158
160
roles = None ,
159
161
licenses = None ,
160
- ** request_parameters
162
+ department = None ,
163
+ manager = None ,
164
+ managerId = None ,
165
+ title = None ,
166
+ addresses = None ,
167
+ siteUrls = None ,
168
+ callingData = None ,
169
+ minResponse = None ,
170
+ ** request_parameters ,
161
171
):
162
172
"""Create a new user account for a given organization
163
173
164
174
Only an admin can create a new user account.
165
175
166
176
Args:
167
177
emails(`list`): Email address(es) of the person (list of strings).
178
+ phoneNumbers(`list`): Phone numbers for the person.
179
+ extension(basestring): Webex Calling extension of the person.
180
+ locationId(basestring): The ID of the location for this person.
168
181
displayName(basestring): Full name of the person.
169
182
firstName(basestring): First name of the person.
170
183
lastName(basestring): Last name of the person.
@@ -176,6 +189,19 @@ def create(
176
189
licenses(`list`): Licenses allocated to the person (list of
177
190
strings - containing the license IDs to be allocated to the
178
191
person).
192
+ department(basestring): The business department the user belongs
193
+ to.
194
+ manager(basestring): A manager identifier.
195
+ managerId(basestring): Person ID of the manager.
196
+ title(basestring): The person's title.
197
+ addresses(`list`): A person's addresses.
198
+ siteUrls(`list`): One or several site names where this user has an
199
+ attendee role.
200
+ callingData(bool): Include Webex Calling user details in the
201
+ response.
202
+ minResponse(bool): Set to true to improve performance by omitting
203
+ person details and returning only the ID in the response when
204
+ successful.
179
205
**request_parameters: Additional request parameters (provides
180
206
support for parameters that may be added in the future).
181
207
@@ -188,28 +214,55 @@ def create(
188
214
189
215
"""
190
216
check_type (emails , list )
217
+ check_type (phoneNumbers , list , optional = True )
218
+ check_type (extension , basestring , optional = True )
219
+ check_type (locationId , basestring , optional = True )
191
220
check_type (displayName , basestring , optional = True )
192
221
check_type (firstName , basestring , optional = True )
193
222
check_type (lastName , basestring , optional = True )
194
223
check_type (avatar , basestring , optional = True )
195
224
check_type (orgId , basestring , optional = True )
196
225
check_type (roles , list , optional = True )
197
226
check_type (licenses , list , optional = True )
227
+ check_type (department , basestring , optional = True )
228
+ check_type (manager , basestring , optional = True )
229
+ check_type (managerId , basestring , optional = True )
230
+ check_type (title , basestring , optional = True )
231
+ check_type (addresses , list , optional = True )
232
+ check_type (siteUrls , list , optional = True )
233
+ check_type (callingData , bool , optional = True )
234
+ check_type (minResponse , bool , optional = True )
198
235
199
236
post_data = dict_from_items_with_values (
200
237
request_parameters ,
201
238
emails = emails ,
239
+ phoneNumbers = phoneNumbers ,
240
+ extension = extension ,
241
+ locationId = locationId ,
202
242
displayName = displayName ,
203
243
firstName = firstName ,
204
244
lastName = lastName ,
205
245
avatar = avatar ,
206
246
orgId = orgId ,
207
247
roles = roles ,
208
248
licenses = licenses ,
249
+ department = department ,
250
+ manager = manager ,
251
+ managerId = managerId ,
252
+ title = title ,
253
+ addresses = addresses ,
254
+ siteUrls = siteUrls ,
255
+ )
256
+
257
+ params = dict_from_items_with_values (
258
+ callingData = callingData ,
259
+ minResponse = minResponse ,
209
260
)
210
261
211
262
# API request
212
- json_data = self ._session .post (API_ENDPOINT , json = post_data )
263
+ json_data = self ._session .post (
264
+ API_ENDPOINT , params = params , json = post_data
265
+ )
213
266
214
267
# Return a person object created from the returned JSON object
215
268
return self ._object_factory (OBJECT_TYPE , json_data )
@@ -247,7 +300,7 @@ def update(
247
300
orgId = None ,
248
301
roles = None ,
249
302
licenses = None ,
250
- ** request_parameters
303
+ ** request_parameters ,
251
304
):
252
305
"""Update details for a person, by ID.
253
306
0 commit comments