gam7 7.7.9__py3-none-any.whl → 7.7.11__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of gam7 might be problematic. Click here for more details.

gam/__init__.py CHANGED
@@ -25,7 +25,7 @@ https://github.com/GAM-team/GAM/wiki
25
25
  """
26
26
 
27
27
  __author__ = 'GAM Team <google-apps-manager@googlegroups.com>'
28
- __version__ = '7.07.09'
28
+ __version__ = '7.07.11'
29
29
  __license__ = 'Apache License 2.0 (http://www.apache.org/licenses/LICENSE-2.0)'
30
30
 
31
31
  #pylint: disable=wrong-import-position
@@ -39299,7 +39299,7 @@ def _updateCalendarEvents(origUser, user, origCal, calIds, count, calendarEventE
39299
39299
  throwReasons=GAPI.CALENDAR_THROW_REASONS+[GAPI.NOT_FOUND, GAPI.DELETED, GAPI.FORBIDDEN, GAPI.BACKEND_ERROR,
39300
39300
  GAPI.INVALID, GAPI.REQUIRED, GAPI.TIME_RANGE_EMPTY, GAPI.EVENT_DURATION_EXCEEDS_LIMIT,
39301
39301
  GAPI.REQUIRED_ACCESS_LEVEL, GAPI.CANNOT_CHANGE_ORGANIZER_OF_INSTANCE,
39302
- GAPI.MALFORMED_WORKING_LOCATION_EVENT],
39302
+ GAPI.MALFORMED_WORKING_LOCATION_EVENT, GAPI.EVENT_TYPE_RESTRICTION, GAPI.BAD_REQUEST],
39303
39303
  retryReasons=GAPI.SERVICE_NOT_AVAILABLE_RETRY_REASONS+[GAPI.BACKEND_ERROR],
39304
39304
  calendarId=calId, eventId=eventId, conferenceDataVersion=1, sendUpdates=parameters['sendUpdates'], supportsAttachments=True,
39305
39305
  body=body, fields=pfields)
@@ -39315,7 +39315,8 @@ def _updateCalendarEvents(origUser, user, origCal, calIds, count, calendarEventE
39315
39315
  break
39316
39316
  entityActionFailedWarning([Ent.CALENDAR, calId, Ent.EVENT, eventId], str(e), j, jcount)
39317
39317
  except (GAPI.forbidden, GAPI.backendError, GAPI.invalid, GAPI.required, GAPI.timeRangeEmpty, GAPI.eventDurationExceedsLimit,
39318
- GAPI.requiredAccessLevel, GAPI.cannotChangeOrganizerOfInstance, GAPI.malformedWorkingLocationEvent) as e:
39318
+ GAPI.requiredAccessLevel, GAPI.cannotChangeOrganizerOfInstance, GAPI.malformedWorkingLocationEvent,
39319
+ GAPI.eventTypeRestriction, GAPI.badRequest) as e:
39319
39320
  entityActionFailedWarning([Ent.CALENDAR, calId, Ent.EVENT, eventId], str(e), j, jcount)
39320
39321
  except GAPI.notACalendarUser:
39321
39322
  userCalServiceNotEnabledWarning(calId, i, count)
@@ -60449,6 +60450,7 @@ def moveDriveFile(users):
60449
60450
  GAPI.FILE_OWNER_NOT_MEMBER_OF_TEAMDRIVE,
60450
60451
  GAPI.FILE_OWNER_NOT_MEMBER_OF_WRITER_DOMAIN,
60451
60452
  GAPI.FILE_WRITER_TEAMDRIVE_MOVE_IN_DISABLED,
60453
+ GAPI.SHARE_OUT_NOT_PERMITTED,
60452
60454
  GAPI.TARGET_USER_ROLE_LIMITED_BY_LICENSE_RESTRICTION,
60453
60455
  GAPI.CANNOT_MOVE_TRASHED_ITEM_INTO_TEAMDRIVE,
60454
60456
  GAPI.CANNOT_MOVE_TRASHED_ITEM_OUT_OF_TEAMDRIVE,
@@ -60463,7 +60465,7 @@ def moveDriveFile(users):
60463
60465
  _incrStatistic(statistics, STAT_FILE_COPIED_MOVED)
60464
60466
  return
60465
60467
  except (GAPI.fileNotFound, GAPI.forbidden, GAPI.internalError, GAPI.unknownError, GAPI.badRequest,
60466
- GAPI.targetUserRoleLimitedByLicenseRestriction,
60468
+ GAPI.shareOutNotPermitted, GAPI.targetUserRoleLimitedByLicenseRestriction,
60467
60469
  GAPI.cannotMoveTrashedItemIntoTeamDrive, GAPI.cannotMoveTrashedItemOutOfTeamDrive,
60468
60470
  GAPI.teamDrivesShortcutFileNotSupported, GAPI.storageQuotaExceeded) as e:
60469
60471
  entityActionFailedWarning(kvList, str(e), k, kcount)
gam/gamlib/glgapi.py CHANGED
@@ -1,6 +1,6 @@
1
1
  # -*- coding: utf-8 -*-
2
2
 
3
- # Copyright (C) 2024 Ross Scroggs All Rights Reserved.
3
+ # Copyright (C) 2025 Ross Scroggs All Rights Reserved.
4
4
  #
5
5
  # All Rights Reserved.
6
6
  #
@@ -72,6 +72,7 @@ DOMAIN_POLICY = 'domainPolicy'
72
72
  DOWNLOAD_QUOTA_EXCEEDED = 'downloadQuotaExceeded'
73
73
  DUPLICATE = 'duplicate'
74
74
  EVENT_DURATION_EXCEEDS_LIMIT = 'eventDurationExceedsLimit'
75
+ EVENT_TYPE_RESTRICTION = 'eventTypeRestriction'
75
76
  EXPIRATION_DATES_MUST_BE_IN_THE_FUTURE = 'expirationDatesMustBeInTheFuture'
76
77
  EXPIRATION_DATE_NOT_ALLOWED_FOR_SHARED_DRIVE_MEMBERS = 'expirationDateNotAllowedForSharedDriveMembers'
77
78
  FAILED_PRECONDITION = 'failedPrecondition'
@@ -457,6 +458,8 @@ class duplicate(Exception):
457
458
  pass
458
459
  class eventDurationExceedsLimit(Exception):
459
460
  pass
461
+ class eventTypeRestriction(Exception):
462
+ pass
460
463
  class expirationDatesMustBeInTheFuture(Exception):
461
464
  pass
462
465
  class expirationDateNotAllowedForSharedDriveMembers(Exception):
@@ -725,6 +728,7 @@ REASON_EXCEPTION_MAP = {
725
728
  DOWNLOAD_QUOTA_EXCEEDED: downloadQuotaExceeded,
726
729
  DUPLICATE: duplicate,
727
730
  EVENT_DURATION_EXCEEDS_LIMIT: eventDurationExceedsLimit,
731
+ EVENT_TYPE_RESTRICTION: eventTypeRestriction,
728
732
  EXPIRATION_DATES_MUST_BE_IN_THE_FUTURE: expirationDatesMustBeInTheFuture,
729
733
  EXPIRATION_DATE_NOT_ALLOWED_FOR_SHARED_DRIVE_MEMBERS: expirationDateNotAllowedForSharedDriveMembers,
730
734
  FAILED_PRECONDITION: failedPrecondition,
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: gam7
3
- Version: 7.7.9
3
+ Version: 7.7.11
4
4
  Summary: CLI tool to manage Google Workspace
5
5
  Project-URL: Homepage, https://github.com/GAM-team/GAM
6
6
  Project-URL: Issues, https://github.com/GAM-team/GAM/issues
@@ -1,4 +1,4 @@
1
- gam/__init__.py,sha256=j_kMvq-AxtTnPSe0VwygI7-CfzFbr18jL-Cqvlq3YDw,3501453
1
+ gam/__init__.py,sha256=wGqDXcTGAEXzhx8ZE1FrNFY9XU578b3a_D4PWqqh_Ks,3501676
2
2
  gam/__main__.py,sha256=amz0-959ph6zkZKqjaar4n60yho-T37w6qWI36qx0CA,1049
3
3
  gam/cacerts.pem,sha256=82Ak7btW_2XvocLUvAwPmpx8Chi0oqtZUG1gseLK_t4,50235
4
4
  gam/cbcm-v1.1beta1.json,sha256=xO5XloCQQULmPbFBx5bckdqmbLFQ7sJ2TImhE1ysDIY,19439
@@ -27,7 +27,7 @@ gam/gamlib/glapi.py,sha256=85YwZ5LhBoVd9kU3m-gwLRq8FwTWCaRIwARuQvH8Mjc,34022
27
27
  gam/gamlib/glcfg.py,sha256=cV011FpIWge4oi5_dJrdof66vUqX6UCvTGWWTNVmYEg,28055
28
28
  gam/gamlib/glclargs.py,sha256=2pb0bdmWbTM5WrNVlMP-d-pe8f5oY3XuF50m02v8ynk,42199
29
29
  gam/gamlib/glentity.py,sha256=fqWUlxQqPKlfFrkuPjCK2lZhhFBIZboCuO0qCxuEwqA,33691
30
- gam/gamlib/glgapi.py,sha256=n3J-kLsMC6pZ89r9i2hZIxCH73T1_WiwJyYVGfyhRsM,39349
30
+ gam/gamlib/glgapi.py,sha256=cGtvFvvBU3XQJLgtLCjs_V5VBUem_k0b5uUrK21VmeA,39491
31
31
  gam/gamlib/glgdata.py,sha256=weRppttWm6uRyqtBoGPKoHiNZ2h28nhfUV4J_mbCszY,2707
32
32
  gam/gamlib/glglobals.py,sha256=xGfSHiDpF-FSA6jorBtzy981OVBGTHCUy_HTsmbIiwE,9712
33
33
  gam/gamlib/glindent.py,sha256=RfBa2LDfLIqPLL5vMfC689TCVmqn8xf-qulSzkiatrc,1228
@@ -65,8 +65,8 @@ gam/googleapiclient/discovery_cache/base.py,sha256=yCDPtxnbNN-p5_9fzBacC6P3wcUPl
65
65
  gam/googleapiclient/discovery_cache/file_cache.py,sha256=sim3Mg4HgRYo3vX75jvcKy_aV568EvIrtBfvfbw-044,4774
66
66
  gam/iso8601/__init__.py,sha256=Z2PsYbXgAH5a5xzUvgczCboPzqWpm65kRcIngCnhViU,1218
67
67
  gam/iso8601/iso8601.py,sha256=Li2FHZ4sBTWuthuQhyCvmvj0j6At8JbGzkSv2fc2RHU,4384
68
- gam7-7.7.9.dist-info/METADATA,sha256=DzMNrykp-H0N8ioCi3KBbYAeRaBPeCNijLkXpTkPyeU,2969
69
- gam7-7.7.9.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
70
- gam7-7.7.9.dist-info/entry_points.txt,sha256=HVUM5J7dA8YwvJfG30jiLefR19ExMs387TWugWd9sf4,42
71
- gam7-7.7.9.dist-info/licenses/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
72
- gam7-7.7.9.dist-info/RECORD,,
68
+ gam7-7.7.11.dist-info/METADATA,sha256=V97FFCLiXhSLK8wiJu8NV_mwypVqHmgFavv_72b_noA,2970
69
+ gam7-7.7.11.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
70
+ gam7-7.7.11.dist-info/entry_points.txt,sha256=HVUM5J7dA8YwvJfG30jiLefR19ExMs387TWugWd9sf4,42
71
+ gam7-7.7.11.dist-info/licenses/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
72
+ gam7-7.7.11.dist-info/RECORD,,
File without changes