Skip to content

Commit 4bbf6b2

Browse files
committed
Handle resourceNotFound in update user
1 parent a082df9 commit 4bbf6b2

2 files changed

Lines changed: 7 additions & 2 deletions

File tree

src/GamUpdate.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
7.46.11
2+
3+
Updated `gam <UserTypeEntity> update user` to handle the following error:
4+
`ERROR: 404: resourceNotFound - Does not exist`
5+
16
7.46.10
27

38
Updated `gam calendars <CalendarEntity> create event` and `gam <UserTypeEntity> create event`

src/gam/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
"""
2626

2727
__author__ = 'GAM Team <google-apps-manager@googlegroups.com>'
28-
__version__ = '7.46.10'
28+
__version__ = '7.46.11'
2929
__license__ = 'Apache License 2.0 (http://www.apache.org/licenses/LICENSE-2.0)'
3030

3131
# pylint: disable=wrong-import-position
@@ -47033,7 +47033,7 @@ def waitingForCreationToComplete(sleep_time):
4703347033
GAPI.FORBIDDEN, GAPI.BAD_REQUEST, GAPI.ADMIN_CANNOT_UNSUSPEND,
4703447034
GAPI.INVALID, GAPI.INVALID_INPUT, GAPI.INVALID_PARAMETER,
4703547035
GAPI.INVALID_ORGUNIT, GAPI.INVALID_SCHEMA_VALUE, GAPI.DUPLICATE,
47036-
GAPI.INSUFFICIENT_ARCHIVED_USER_LICENSES, GAPI.CONFLICT],
47036+
GAPI.INSUFFICIENT_ARCHIVED_USER_LICENSES, GAPI.CONFLICT, GAPI.RESOURCE_NOT_FOUND],
4703747037
userKey=userKey, body=body, fields=fields)
4703847038
entityActionPerformed([Ent.USER, user], i, count)
4703947039
if PwdOpts.filename and PwdOpts.password:

0 commit comments

Comments
 (0)