@@ -65,7 +65,7 @@ def __init__(self, session, object_factory):
6565 TypeError: If the parameter types are incorrect.
6666
6767 """
68- check_type (session , RestSession )
68+ check_type (session , RestSession , optional = True )
6969
7070 super (PeopleAPI , self ).__init__ ()
7171
@@ -108,11 +108,11 @@ def list(self, email=None, displayName=None, id=None, orgId=None, max=None,
108108 ApiError: If the Webex Teams cloud returns an error.
109109
110110 """
111- check_type (id , basestring )
112- check_type (email , basestring )
113- check_type (displayName , basestring )
114- check_type (orgId , basestring )
115- check_type (max , int )
111+ check_type (id , basestring , optional = True )
112+ check_type (email , basestring , optional = True )
113+ check_type (displayName , basestring , optional = True )
114+ check_type (orgId , basestring , optional = True )
115+ check_type (max , int , optional = True )
116116
117117 params = dict_from_items_with_values (
118118 request_parameters ,
@@ -162,13 +162,13 @@ def create(self, emails, displayName=None, firstName=None, lastName=None,
162162
163163 """
164164 check_type (emails , list , optional = False )
165- check_type (displayName , basestring )
166- check_type (firstName , basestring )
167- check_type (lastName , basestring )
168- check_type (avatar , basestring )
169- check_type (orgId , basestring )
170- check_type (roles , list )
171- check_type (licenses , list )
165+ check_type (displayName , basestring , optional = True )
166+ check_type (firstName , basestring , optional = True )
167+ check_type (lastName , basestring , optional = True )
168+ check_type (avatar , basestring , optional = True )
169+ check_type (orgId , basestring , optional = True )
170+ check_type (roles , list , optional = True )
171+ check_type (licenses , list , optional = True )
172172
173173 post_data = dict_from_items_with_values (
174174 request_parameters ,
@@ -249,14 +249,14 @@ def update(self, personId, emails=None, displayName=None, firstName=None,
249249 ApiError: If the Webex Teams cloud returns an error.
250250
251251 """
252- check_type (emails , list )
253- check_type (displayName , basestring )
254- check_type (firstName , basestring )
255- check_type (lastName , basestring )
256- check_type (avatar , basestring )
257- check_type (orgId , basestring )
258- check_type (roles , list )
259- check_type (licenses , list )
252+ check_type (emails , list , optional = True )
253+ check_type (displayName , basestring , optional = True )
254+ check_type (firstName , basestring , optional = True )
255+ check_type (lastName , basestring , optional = True )
256+ check_type (avatar , basestring , optional = True )
257+ check_type (orgId , basestring , optional = True )
258+ check_type (roles , list , optional = True )
259+ check_type (licenses , list , optional = True )
260260
261261 put_data = dict_from_items_with_values (
262262 request_parameters ,
0 commit comments