Skip to content

Commit a1c6b78

Browse files
committed
Update teams.py
- Update default value for `max=` in the teams.list() method. - Make `name` a required parameter for the teams.update() method.
1 parent b3c1213 commit a1c6b78

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

webexteamssdk/api/teams.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ def __init__(self, session, object_factory):
7373
self._object_factory = object_factory
7474

7575
@generator_container
76-
def list(self, max=None, **request_parameters):
76+
def list(self, max=100, **request_parameters):
7777
"""List teams to which the authenticated user belongs.
7878
7979
This method supports Webex Teams's implementation of RFC5988 Web
@@ -168,7 +168,7 @@ def get(self, teamId):
168168
# Return a team object created from the response JSON data
169169
return self._object_factory(OBJECT_TYPE, json_data)
170170

171-
def update(self, teamId, name=None, **request_parameters):
171+
def update(self, teamId, name, **request_parameters):
172172
"""Update details for a team, by ID.
173173
174174
Args:
@@ -186,7 +186,7 @@ def update(self, teamId, name=None, **request_parameters):
186186
187187
"""
188188
check_type(teamId, basestring)
189-
check_type(name, basestring, optional=True)
189+
check_type(name, basestring)
190190

191191
put_data = dict_from_items_with_values(
192192
request_parameters,

0 commit comments

Comments
 (0)