gam7 7.3.8__py3-none-any.whl → 7.4.0__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 +117 -882
- gam/gamlib/glapi.py +0 -11
- gam/gamlib/glclargs.py +4 -0
- gam/gamlib/glentity.py +0 -4
- gam/gamlib/glglobals.py +5 -2
- gam/gamlib/glmsgs.py +1 -0
- {gam7-7.3.8.dist-info → gam7-7.4.0.dist-info}/METADATA +1 -1
- {gam7-7.3.8.dist-info → gam7-7.4.0.dist-info}/RECORD +11 -11
- {gam7-7.3.8.dist-info → gam7-7.4.0.dist-info}/WHEEL +0 -0
- {gam7-7.3.8.dist-info → gam7-7.4.0.dist-info}/entry_points.txt +0 -0
- {gam7-7.3.8.dist-info → gam7-7.4.0.dist-info}/licenses/LICENSE +0 -0
gam/gamlib/glapi.py
CHANGED
|
@@ -89,7 +89,6 @@ SERVICEMANAGEMENT = 'servicemanagement'
|
|
|
89
89
|
SERVICEUSAGE = 'serviceusage'
|
|
90
90
|
SHEETS = 'sheets'
|
|
91
91
|
SHEETSTD = 'sheetstd'
|
|
92
|
-
SITES = 'sites'
|
|
93
92
|
SITEVERIFICATION = 'siteVerification'
|
|
94
93
|
STORAGE = 'storage'
|
|
95
94
|
STORAGEREAD = 'storageread'
|
|
@@ -266,7 +265,6 @@ _INFO = {
|
|
|
266
265
|
SERVICEUSAGE: {'name': 'Service Usage API', 'version': 'v1', 'v2discovery': True},
|
|
267
266
|
SHEETS: {'name': 'Sheets API', 'version': 'v4', 'v2discovery': True},
|
|
268
267
|
SHEETSTD: {'name': 'Sheets API - todrive', 'version': 'v4', 'v2discovery': True, 'mappedAPI': SHEETS},
|
|
269
|
-
SITES: {'name': 'Sites API', 'version': 'v1', 'v2discovery': False},
|
|
270
268
|
SITEVERIFICATION: {'name': 'Site Verification API', 'version': 'v1', 'v2discovery': True},
|
|
271
269
|
STORAGE: {'name': 'Cloud Storage API', 'version': 'v1', 'v2discovery': True},
|
|
272
270
|
STORAGEREAD: {'name': 'Cloud Storage API - Read', 'version': 'v1', 'v2discovery': True, 'mappedAPI': STORAGE},
|
|
@@ -500,11 +498,6 @@ _CLIENT_SCOPES = [
|
|
|
500
498
|
'subscopes': [],
|
|
501
499
|
'offByDefault': True,
|
|
502
500
|
'scope': 'https://www.googleapis.com/auth/siteverification'},
|
|
503
|
-
{'name': 'Sites API',
|
|
504
|
-
'api': SITES,
|
|
505
|
-
'subscopes': [],
|
|
506
|
-
'offByDefault': True,
|
|
507
|
-
'scope': 'https://sites.google.com/feeds'},
|
|
508
501
|
{'name': 'Vault API',
|
|
509
502
|
'api': VAULT,
|
|
510
503
|
'subscopes': READONLY,
|
|
@@ -694,10 +687,6 @@ _SVCACCT_SCOPES = [
|
|
|
694
687
|
'api': SHEETS,
|
|
695
688
|
'subscopes': READONLY,
|
|
696
689
|
'scope': 'https://www.googleapis.com/auth/spreadsheets'},
|
|
697
|
-
{'name': 'Sites API',
|
|
698
|
-
'api': SITES,
|
|
699
|
-
'subscopes': [],
|
|
700
|
-
'scope': 'https://sites.google.com/feeds'},
|
|
701
690
|
{'name': 'Tasks API',
|
|
702
691
|
'api': TASKS,
|
|
703
692
|
'subscopes': READONLY,
|
gam/gamlib/glclargs.py
CHANGED
|
@@ -1150,6 +1150,10 @@ class GamCLArgs():
|
|
|
1150
1150
|
return f'Command: {self.QuotedArgumentList(self.argv[:self.argvI])} >>>{self.QuotedArgumentList([self.argv[self.argvI]])}<<< {self.QuotedArgumentList(self.argv[self.argvI+1:])}\n'
|
|
1151
1151
|
return f'Command: {self.QuotedArgumentList(self.argv)} >>><<<\n'
|
|
1152
1152
|
|
|
1153
|
+
# Deprecated command
|
|
1154
|
+
def CommandDeprecated(self):
|
|
1155
|
+
return f'{self.QuotedArgumentList(self.argv)}\n'
|
|
1156
|
+
|
|
1153
1157
|
# Peek to see if next argument is in choices
|
|
1154
1158
|
def PeekArgumentPresent(self, choices):
|
|
1155
1159
|
if self.ArgumentsRemaining():
|
gam/gamlib/glentity.py
CHANGED
|
@@ -342,8 +342,6 @@ class GamEntity():
|
|
|
342
342
|
SHEET = 'shet'
|
|
343
343
|
SHEET_ID = 'shti'
|
|
344
344
|
SIGNATURE = 'sign'
|
|
345
|
-
SITE = 'site'
|
|
346
|
-
SITE_ACL = 'sacl'
|
|
347
345
|
SIZE = 'size'
|
|
348
346
|
SKU = 'sku '
|
|
349
347
|
SMIME_ID = 'smid'
|
|
@@ -695,8 +693,6 @@ class GamEntity():
|
|
|
695
693
|
SHEET: ['Sheets', 'Sheet'],
|
|
696
694
|
SHEET_ID: ['Sheet IDs', 'Sheet ID'],
|
|
697
695
|
SIGNATURE: ['Signatures', 'Signature'],
|
|
698
|
-
SITE: ['Sites', 'Site'],
|
|
699
|
-
SITE_ACL: ['Site ACLs', 'Site ACL'],
|
|
700
696
|
SIZE: ['Sizes', 'Size'],
|
|
701
697
|
SKU: ['SKUs', 'SKU'],
|
|
702
698
|
SMIME_ID: ['S/MIME Certificate IDs', 'S/MIME Certificate ID'],
|
gam/gamlib/glglobals.py
CHANGED
|
@@ -23,8 +23,10 @@
|
|
|
23
23
|
# The following GM_XXX constants are arbitrary but must be unique
|
|
24
24
|
# Most errors print a message and bail out with a return code
|
|
25
25
|
# Some commands want to set a non-zero return code but not bail
|
|
26
|
-
# GAM admin user
|
|
27
|
-
ADMIN = '
|
|
26
|
+
# GAM admin user from oauth2.txt or oauth2service.json
|
|
27
|
+
ADMIN = 'admn'
|
|
28
|
+
# Drive service for admin; used to look up Shared Drive Names
|
|
29
|
+
ADMIN_DRIVE = 'addr'
|
|
28
30
|
# Number/length of API call retries
|
|
29
31
|
API_CALLS_RETRY_DATA = 'rtry'
|
|
30
32
|
# GAM cache directory. If no_cache is True, this variable will be set to None
|
|
@@ -215,6 +217,7 @@ REDIRECT_QUEUE_EOF = 'eof'
|
|
|
215
217
|
#
|
|
216
218
|
Globals = {
|
|
217
219
|
ADMIN: None,
|
|
220
|
+
ADMIN_DRIVE: None,
|
|
218
221
|
API_CALLS_RETRY_DATA: {},
|
|
219
222
|
CACHE_DIR: None,
|
|
220
223
|
CACHE_DISCOVERY_ONLY: True,
|
gam/gamlib/glmsgs.py
CHANGED
|
@@ -481,6 +481,7 @@ SERVICE_NOT_APPLICABLE = 'Service not applicable/Does not exist'
|
|
|
481
481
|
SERVICE_NOT_APPLICABLE_THIS_ADDRESS = 'Service not applicable for this address: {0}'
|
|
482
482
|
SERVICE_NOT_ENABLED = '{0} Service/App not enabled'
|
|
483
483
|
SHORTCUT_TARGET_CAPABILITY_IS_FALSE = '{0} capability {1} is False'
|
|
484
|
+
SITES_COMMAND_DEPRECATED = 'The Classic Sites API is deprecated, this command will not work:\n{0}'
|
|
484
485
|
SKU_HAS_NO_MATCHING_ARCHIVED_USER_SKU = 'SKU {0} has no matching Archived User SKU'
|
|
485
486
|
STARTING_THREAD = 'Starting thread'
|
|
486
487
|
STATISTICS_COPY_FILE = 'Total: {0}, Copied: {1}, Shortcut created {2}, Shortcut exists {3}, Duplicate: {4}, Copy Failed: {5}, Not copyable: {6}, In skipids: {7}, Permissions Failed: {8}, Protected Ranges Failed: {9}'
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
gam/__init__.py,sha256=
|
|
1
|
+
gam/__init__.py,sha256=siFL0HiLrLvg1EOrtiIs1nFbyYzyAPlsilNd4CGMpXc,3470144
|
|
2
2
|
gam/__main__.py,sha256=amz0-959ph6zkZKqjaar4n60yho-T37w6qWI36qx0CA,1049
|
|
3
3
|
gam/cacerts.pem,sha256=nJuWha0xm5dHw_5ptGphwRoO-r36Ccpqiww9pCEDbSc,67484
|
|
4
4
|
gam/cbcm-v1.1beta1.json,sha256=xO5XloCQQULmPbFBx5bckdqmbLFQ7sJ2TImhE1ysDIY,19439
|
|
@@ -22,15 +22,15 @@ gam/atom/token_store.py,sha256=7E6Ecvxa86WCvl1pJAhv78jg9OxQv8pMtIUcPhZCq04,3803
|
|
|
22
22
|
gam/atom/url.py,sha256=pxO1TlORxyKQTQ1bkBE1unFzjnv9c8LjJkm-UEORShY,4276
|
|
23
23
|
gam/gamlib/__init__.py,sha256=z5mF-y0j8pm-YNFBaiuxB4M_GAUPG-cXWwrhYwrVReM,679
|
|
24
24
|
gam/gamlib/glaction.py,sha256=1Il_HrChVnPkzZwiZs5au4mFQVtq4K1Z42uIuR6qdnI,9419
|
|
25
|
-
gam/gamlib/glapi.py,sha256=
|
|
25
|
+
gam/gamlib/glapi.py,sha256=AkZRK0ebSBn7iJApTZl2crRWY3-D0vNmwTI36ZEo34s,34171
|
|
26
26
|
gam/gamlib/glcfg.py,sha256=3ix3GFXP8riaD4z4ubt4qUCxznhmLU-bZHCw8TxLiz8,27484
|
|
27
|
-
gam/gamlib/glclargs.py,sha256=
|
|
28
|
-
gam/gamlib/glentity.py,sha256=
|
|
27
|
+
gam/gamlib/glclargs.py,sha256=ptSTGELZHQS6SfvGGJ3NrXRoHAToO108NTYsFQE-C4c,42200
|
|
28
|
+
gam/gamlib/glentity.py,sha256=ZLbyMl9NhN-MBf9Rxmho2dBYeS4SNLMctpeaKFZSbQ4,33801
|
|
29
29
|
gam/gamlib/glgapi.py,sha256=W1nFH0sY7P8pnb98_4uzMSCs8gre0rvG5pBRI6HJq0c,38274
|
|
30
30
|
gam/gamlib/glgdata.py,sha256=weRppttWm6uRyqtBoGPKoHiNZ2h28nhfUV4J_mbCszY,2707
|
|
31
|
-
gam/gamlib/glglobals.py,sha256=
|
|
31
|
+
gam/gamlib/glglobals.py,sha256=B0kCz4K6PO1-n3eZI_lvdRG99Ane1-dH4zS4J4aymlI,9566
|
|
32
32
|
gam/gamlib/glindent.py,sha256=RfBa2LDfLIqPLL5vMfC689TCVmqn8xf-qulSzkiatrc,1228
|
|
33
|
-
gam/gamlib/glmsgs.py,sha256=
|
|
33
|
+
gam/gamlib/glmsgs.py,sha256=HzISx_btqbwOKjMm2rokV4-Y1BMDS04-bwu6fa92XCo,33202
|
|
34
34
|
gam/gamlib/glskus.py,sha256=S-OasG1SteZSV0cG8JM74L3wFp9sozoZd39fTXajQWc,14159
|
|
35
35
|
gam/gamlib/gluprop.py,sha256=IyPLCyvn7-NHTUenM71YPQPXRZXx6CB5q-GtJ-FYd1c,11461
|
|
36
36
|
gam/gamlib/glverlibs.py,sha256=XXYhmjOVti78JTy7NNr4ShIwiOX7LrfrmFSlqSWixrE,1077
|
|
@@ -66,8 +66,8 @@ gam/googleapiclient/discovery_cache/base.py,sha256=yCDPtxnbNN-p5_9fzBacC6P3wcUPl
|
|
|
66
66
|
gam/googleapiclient/discovery_cache/file_cache.py,sha256=sim3Mg4HgRYo3vX75jvcKy_aV568EvIrtBfvfbw-044,4774
|
|
67
67
|
gam/iso8601/__init__.py,sha256=Z2PsYbXgAH5a5xzUvgczCboPzqWpm65kRcIngCnhViU,1218
|
|
68
68
|
gam/iso8601/iso8601.py,sha256=Li2FHZ4sBTWuthuQhyCvmvj0j6At8JbGzkSv2fc2RHU,4384
|
|
69
|
-
gam7-7.
|
|
70
|
-
gam7-7.
|
|
71
|
-
gam7-7.
|
|
72
|
-
gam7-7.
|
|
73
|
-
gam7-7.
|
|
69
|
+
gam7-7.4.0.dist-info/METADATA,sha256=OkqtLXKZQjbP8QM5bYvqx65hXnReESoLPIye8I64V4A,2888
|
|
70
|
+
gam7-7.4.0.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
|
71
|
+
gam7-7.4.0.dist-info/entry_points.txt,sha256=HVUM5J7dA8YwvJfG30jiLefR19ExMs387TWugWd9sf4,42
|
|
72
|
+
gam7-7.4.0.dist-info/licenses/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
|
|
73
|
+
gam7-7.4.0.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|