mirror of
https://github.com/GAM-team/GAM.git
synced 2026-07-03 20:31:35 +00:00
Compare commits
14 Commits
v7.07.13
...
20250530.0
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
fce8704f87 | ||
|
|
4d3b72900b | ||
|
|
fd81d56675 | ||
|
|
762d8479a4 | ||
|
|
6f19ec4f8c | ||
|
|
8af3bc60e6 | ||
|
|
e636a69431 | ||
|
|
673460e91d | ||
|
|
9862ad446f | ||
|
|
67f21ce650 | ||
|
|
e82baccbac | ||
|
|
c51b06a6c3 | ||
|
|
b7415cd63f | ||
|
|
f0f5803698 |
2
.github/workflows/build.yml
vendored
2
.github/workflows/build.yml
vendored
@@ -449,7 +449,7 @@ jobs:
|
|||||||
"$PYTHON" get-pip.py
|
"$PYTHON" get-pip.py
|
||||||
"$PYTHON" -m pip install --upgrade pip
|
"$PYTHON" -m pip install --upgrade pip
|
||||||
"$PYTHON" -m pip install --upgrade wheel
|
"$PYTHON" -m pip install --upgrade wheel
|
||||||
"$PYTHON" -m pip install setuptools==80.8.0
|
"$PYTHON" -m pip install setuptools
|
||||||
"$PYTHON" -m pip install --upgrade importlib-metadata
|
"$PYTHON" -m pip install --upgrade importlib-metadata
|
||||||
"$PYTHON" -m pip install --upgrade setuptools-scm
|
"$PYTHON" -m pip install --upgrade setuptools-scm
|
||||||
"$PYTHON" -m pip list
|
"$PYTHON" -m pip list
|
||||||
|
|||||||
@@ -21,8 +21,8 @@ dependencies = [
|
|||||||
"lxml>=5.4.0",
|
"lxml>=5.4.0",
|
||||||
"passlib>=1.7.4",
|
"passlib>=1.7.4",
|
||||||
"pathvalidate>=3.2.3",
|
"pathvalidate>=3.2.3",
|
||||||
"pyscard==2.2.1",
|
|
||||||
"python-dateutil",
|
"python-dateutil",
|
||||||
|
"yubikey-manager>=5.6.1",
|
||||||
]
|
]
|
||||||
description = "CLI tool to manage Google Workspace"
|
description = "CLI tool to manage Google Workspace"
|
||||||
readme = "README.md"
|
readme = "README.md"
|
||||||
|
|||||||
@@ -2396,12 +2396,14 @@ gam <CrOSTypeEntity> update <CrOSAttribute>+ [quickcrosmove [<Boolean>]] [nobatc
|
|||||||
autoupdatethrough|
|
autoupdatethrough|
|
||||||
backlightinfo|
|
backlightinfo|
|
||||||
bootmode|
|
bootmode|
|
||||||
|
chromeostype|
|
||||||
cpuinfo|
|
cpuinfo|
|
||||||
cpustatusreports|
|
cpustatusreports|
|
||||||
deprovisionreason|
|
deprovisionreason|
|
||||||
devicefiles|
|
devicefiles|
|
||||||
deviceid|
|
deviceid|
|
||||||
devicelicensetype|
|
devicelicensetype|
|
||||||
|
diskspaceusage|
|
||||||
diskvolumereports|
|
diskvolumereports|
|
||||||
dockmacaddress|
|
dockmacaddress|
|
||||||
ethernetmacaddress|
|
ethernetmacaddress|
|
||||||
@@ -2409,6 +2411,7 @@ gam <CrOSTypeEntity> update <CrOSAttribute>+ [quickcrosmove [<Boolean>]] [nobatc
|
|||||||
extendedsupporteligible|
|
extendedsupporteligible|
|
||||||
extendedsupportstart|
|
extendedsupportstart|
|
||||||
extendedsupportenabled|
|
extendedsupportenabled|
|
||||||
|
faninfo|
|
||||||
firmwareversion|
|
firmwareversion|
|
||||||
firstenrollmenttime|
|
firstenrollmenttime|
|
||||||
lastdeprovisiontimestamp|
|
lastdeprovisiontimestamp|
|
||||||
@@ -5260,7 +5263,8 @@ gam create vaultexport|export matter <MatterItem> [name <String>] corpus calenda
|
|||||||
[terms <String>] [start|starttime <Date>|<Time>] [end|endtime <Date>|<Time>] [timezone <TimeZone>]
|
[terms <String>] [start|starttime <Date>|<Time>] [end|endtime <Date>|<Time>] [timezone <TimeZone>]
|
||||||
[locationquery <StringList>] [peoplequery <StringList>] [minuswords <StringList>]
|
[locationquery <StringList>] [peoplequery <StringList>] [minuswords <StringList>]
|
||||||
[responsestatuses <AttendeeStatus>(,<AttendeeStatus>)*] [calendarversiondate <Date>|<Time>]
|
[responsestatuses <AttendeeStatus>(,<AttendeeStatus>)*] [calendarversiondate <Date>|<Time>]
|
||||||
[includeshareddrives <Boolean>] [driveversiondate <Date>|<Time>] [includeaccessinfo <Boolean>]
|
[(includeshareddrives <Boolean>)|(shareddrivesoption included|included_if_account_is_not_a_member|not_included)]
|
||||||
|
[driveversiondate <Date>|<Time>] [includeaccessinfo <Boolean>]
|
||||||
[driveclientsideencryption any|encrypted|unencrypted]
|
[driveclientsideencryption any|encrypted|unencrypted]
|
||||||
[includerooms <Boolean>]
|
[includerooms <Boolean>]
|
||||||
[excludedrafts <Boolean>] [mailclientsideencryption any|encrypted|unencrypted]
|
[excludedrafts <Boolean>] [mailclientsideencryption any|encrypted|unencrypted]
|
||||||
@@ -5326,14 +5330,14 @@ gam create vaulthold|hold matter <MatterItem> [name <String>] corpus calendar|dr
|
|||||||
[query <QueryVaultCorpus>]
|
[query <QueryVaultCorpus>]
|
||||||
[terms <String>] [start|starttime <Date>|<Time>] [end|endtime <Date>|<Time>]
|
[terms <String>] [start|starttime <Date>|<Time>] [end|endtime <Date>|<Time>]
|
||||||
[includerooms <Boolean>] [covereddata calllogs|textmessages|voicemails]
|
[includerooms <Boolean>] [covereddata calllogs|textmessages|voicemails]
|
||||||
[includeshareddrives|includeteamdrives <Boolean>]
|
[includeshareddrives <Boolean>]
|
||||||
[showdetails|returnidonly]
|
[showdetails|returnidonly]
|
||||||
gam update vaulthold|hold <HoldItem> matter <MatterItem>
|
gam update vaulthold|hold <HoldItem> matter <MatterItem>
|
||||||
[([addaccounts|addgroups|addusers <EmailItemList>] [removeaccounts|removegroups|removeusers <EmailItemList>]) | (orgunit|org|ou <OrgUnit>)]
|
[([addaccounts|addgroups|addusers <EmailItemList>] [removeaccounts|removegroups|removeusers <EmailItemList>]) | (orgunit|org|ou <OrgUnit>)]
|
||||||
[query <QueryVaultCorpus>]
|
[query <QueryVaultCorpus>]
|
||||||
[terms <String>] [start|starttime <Date>|<Time>] [end|endtime <Date>|<Time>]
|
[terms <String>] [start|starttime <Date>|<Time>] [end|endtime <Date>|<Time>]
|
||||||
[includerooms <Boolean>] [covereddata calllogs|textmessages|voicemails]
|
[includerooms <Boolean>] [covereddata calllogs|textmessages|voicemails]
|
||||||
[includeshareddrives|includeteamdrives <Boolean>]
|
[includeshareddrives <Boolean>]
|
||||||
[showdetails]
|
[showdetails]
|
||||||
gam delete vaulthold|hold <HoldItem> matter <MatterItem>
|
gam delete vaulthold|hold <HoldItem> matter <MatterItem>
|
||||||
gam delete vaulthold|hold <MatterItem> <HoldItem>
|
gam delete vaulthold|hold <MatterItem> <HoldItem>
|
||||||
|
|||||||
@@ -1,3 +1,24 @@
|
|||||||
|
7.07.16
|
||||||
|
|
||||||
|
Added `chromeostype`, `diskspaceusage` and `faninfo` to `<CrOSFieldName>` for use in `gam info|print cros`.
|
||||||
|
|
||||||
|
Fixed bugs/cleaned output in `gam info|print cros`.
|
||||||
|
|
||||||
|
7.07.15
|
||||||
|
|
||||||
|
Added option `shareddrivesoption included|included_if_account_is_not_a_member|not_included` to `gam create vaultexport`.
|
||||||
|
|
||||||
|
The previous option `includeshareddrives <Boolean>` is mapped as follows:
|
||||||
|
* `includeshareddrives false` - `shareddrivesoption included_if_account_is_not_a_member`
|
||||||
|
* `includeshareddrives true` - `shareddrivesoption included`
|
||||||
|
|
||||||
|
7.07.14
|
||||||
|
|
||||||
|
Update `gam setup chat` output to include the following that shows the actual Cloud Pub/Sub Topic Name.
|
||||||
|
```
|
||||||
|
You'll use projects/<ProjectID>/topics/no-topic in Connection settings Cloud Pub/Sub Topic Name
|
||||||
|
```
|
||||||
|
|
||||||
7.07.13
|
7.07.13
|
||||||
|
|
||||||
Added option `showitemcountonly` to `gam [<UserTypeEntity>] print|show shareddrives` that causes GAM to display the
|
Added option `showitemcountonly` to `gam [<UserTypeEntity>] print|show shareddrives` that causes GAM to display the
|
||||||
|
|||||||
@@ -38,6 +38,10 @@ hiddenimports = [
|
|||||||
'gam.gamlib.yubikey',
|
'gam.gamlib.yubikey',
|
||||||
]
|
]
|
||||||
|
|
||||||
|
excludes = [
|
||||||
|
'pkg_resources',
|
||||||
|
]
|
||||||
|
|
||||||
runtime_hooks = []
|
runtime_hooks = []
|
||||||
a = Analysis(
|
a = Analysis(
|
||||||
['gam/__main__.py'],
|
['gam/__main__.py'],
|
||||||
@@ -48,7 +52,7 @@ a = Analysis(
|
|||||||
hookspath=[],
|
hookspath=[],
|
||||||
hooksconfig={},
|
hooksconfig={},
|
||||||
runtime_hooks=runtime_hooks,
|
runtime_hooks=runtime_hooks,
|
||||||
excludes=[],
|
excludes=excludes,
|
||||||
win_no_prefer_redirects=False,
|
win_no_prefer_redirects=False,
|
||||||
win_private_assemblies=False,
|
win_private_assemblies=False,
|
||||||
cipher=None,
|
cipher=None,
|
||||||
|
|||||||
@@ -25,7 +25,7 @@ https://github.com/GAM-team/GAM/wiki
|
|||||||
"""
|
"""
|
||||||
|
|
||||||
__author__ = 'GAM Team <google-apps-manager@googlegroups.com>'
|
__author__ = 'GAM Team <google-apps-manager@googlegroups.com>'
|
||||||
__version__ = '7.07.13'
|
__version__ = '7.07.16'
|
||||||
__license__ = 'Apache License 2.0 (http://www.apache.org/licenses/LICENSE-2.0)'
|
__license__ = 'Apache License 2.0 (http://www.apache.org/licenses/LICENSE-2.0)'
|
||||||
|
|
||||||
#pylint: disable=wrong-import-position
|
#pylint: disable=wrong-import-position
|
||||||
@@ -23759,12 +23759,14 @@ CROS_FIELDS_CHOICE_MAP = {
|
|||||||
'autoupdatethrough': 'autoUpdateThrough',
|
'autoupdatethrough': 'autoUpdateThrough',
|
||||||
'backlightinfo': 'backlightInfo',
|
'backlightinfo': 'backlightInfo',
|
||||||
'bootmode': 'bootMode',
|
'bootmode': 'bootMode',
|
||||||
|
'chromeostype': 'chromeOsType',
|
||||||
'cpuinfo': 'cpuInfo',
|
'cpuinfo': 'cpuInfo',
|
||||||
'cpustatusreports': 'cpuStatusReports',
|
'cpustatusreports': 'cpuStatusReports',
|
||||||
'deprovisionreason': 'deprovisionReason',
|
'deprovisionreason': 'deprovisionReason',
|
||||||
'devicefiles': ['deviceFiles.type', 'deviceFiles.createTime'],
|
'devicefiles': ['deviceFiles.type', 'deviceFiles.createTime'],
|
||||||
'deviceid': 'deviceId',
|
'deviceid': 'deviceId',
|
||||||
'devicelicensetype': 'deviceLicenseType',
|
'devicelicensetype': 'deviceLicenseType',
|
||||||
|
'diskspaceusage': 'diskSpaceUsage',
|
||||||
'diskvolumereports': 'diskVolumeReports',
|
'diskvolumereports': 'diskVolumeReports',
|
||||||
'dockmacaddress': 'dockMacAddress',
|
'dockmacaddress': 'dockMacAddress',
|
||||||
'ethernetmacaddress': 'ethernetMacAddress',
|
'ethernetmacaddress': 'ethernetMacAddress',
|
||||||
@@ -23772,6 +23774,7 @@ CROS_FIELDS_CHOICE_MAP = {
|
|||||||
'extendedsupporteligible': 'extendedSupportEligible',
|
'extendedsupporteligible': 'extendedSupportEligible',
|
||||||
'extendedsupportstart': 'extendedSupportStart',
|
'extendedsupportstart': 'extendedSupportStart',
|
||||||
'extendedsupportenabled': 'extendedSupportEnabled',
|
'extendedsupportenabled': 'extendedSupportEnabled',
|
||||||
|
'faninfo': 'fanInfo',
|
||||||
'firmwareversion': 'firmwareVersion',
|
'firmwareversion': 'firmwareVersion',
|
||||||
'firstenrollmenttime': 'firstEnrollmentTime',
|
'firstenrollmenttime': 'firstEnrollmentTime',
|
||||||
'lastdeprovisiontimestamp': 'lastDeprovisionTimestamp',
|
'lastdeprovisiontimestamp': 'lastDeprovisionTimestamp',
|
||||||
@@ -23819,6 +23822,7 @@ CROS_SCALAR_PROPERTY_PRINT_ORDER = [
|
|||||||
'notes',
|
'notes',
|
||||||
'serialNumber',
|
'serialNumber',
|
||||||
'status',
|
'status',
|
||||||
|
'chromeOsType',
|
||||||
'deviceLicenseType',
|
'deviceLicenseType',
|
||||||
'model',
|
'model',
|
||||||
'firmwareVersion',
|
'firmwareVersion',
|
||||||
@@ -23839,6 +23843,7 @@ CROS_SCALAR_PROPERTY_PRINT_ORDER = [
|
|||||||
'manufactureDate',
|
'manufactureDate',
|
||||||
'supportEndDate',
|
'supportEndDate',
|
||||||
'autoUpdateExpiration',
|
'autoUpdateExpiration',
|
||||||
|
'autoUpdateThrough',
|
||||||
'willAutoRenew',
|
'willAutoRenew',
|
||||||
]
|
]
|
||||||
|
|
||||||
@@ -23863,8 +23868,11 @@ CROS_TIME_OBJECTS = {
|
|||||||
'lastDeprovisionTimestamp',
|
'lastDeprovisionTimestamp',
|
||||||
'lastEnrollmentTime',
|
'lastEnrollmentTime',
|
||||||
'lastSync',
|
'lastSync',
|
||||||
|
'rebootTime',
|
||||||
'reportTime',
|
'reportTime',
|
||||||
'supportEndDate',
|
'supportEndDate',
|
||||||
|
'updateTime',
|
||||||
|
'updateCheckTime',
|
||||||
}
|
}
|
||||||
CROS_FIELDS_WITH_CRS_NLS = {'notes'}
|
CROS_FIELDS_WITH_CRS_NLS = {'notes'}
|
||||||
CROS_START_ARGUMENTS = ['start', 'startdate', 'oldestdate']
|
CROS_START_ARGUMENTS = ['start', 'startdate', 'oldestdate']
|
||||||
@@ -23981,13 +23989,13 @@ def infoCrOSDevices(entityList):
|
|||||||
printKeyValueWithCRsNLs(up, cros[up])
|
printKeyValueWithCRsNLs(up, cros[up])
|
||||||
else:
|
else:
|
||||||
printKeyValueList([up, formatLocalTime(cros[up])])
|
printKeyValueList([up, formatLocalTime(cros[up])])
|
||||||
up = 'tpmVersionInfo'
|
for up in ['diskSpaceUsage', 'osUpdateStatus', 'tpmVersionInfo']:
|
||||||
if up in cros:
|
if up in cros:
|
||||||
printKeyValueList([up, ''])
|
printKeyValueList([up, ''])
|
||||||
Ind.Increment()
|
Ind.Increment()
|
||||||
for key, value in sorted(iter(cros[up].items())):
|
for key, value in sorted(iter(cros[up].items())):
|
||||||
printKeyValueList([key, value])
|
printKeyValueList([key, value])
|
||||||
Ind.Decrement()
|
Ind.Decrement()
|
||||||
if not noLists:
|
if not noLists:
|
||||||
activeTimeRanges = _filterActiveTimeRanges(cros, True, listLimit, startDate, endDate, activeTimeRangesOrder)
|
activeTimeRanges = _filterActiveTimeRanges(cros, True, listLimit, startDate, endDate, activeTimeRangesOrder)
|
||||||
if activeTimeRanges:
|
if activeTimeRanges:
|
||||||
@@ -24041,6 +24049,9 @@ def infoCrOSDevices(entityList):
|
|||||||
entityActionNotPerformedWarning([Ent.CROS_DEVICE, deviceId, Ent.DEVICE_FILE, downloadfile],
|
entityActionNotPerformedWarning([Ent.CROS_DEVICE, deviceId, Ent.DEVICE_FILE, downloadfile],
|
||||||
Msg.NO_ENTITIES_FOUND.format(Ent.Plural(Ent.DEVICE_FILE)), i, count)
|
Msg.NO_ENTITIES_FOUND.format(Ent.Plural(Ent.DEVICE_FILE)), i, count)
|
||||||
Act.Set(Act.INFO)
|
Act.Set(Act.INFO)
|
||||||
|
cpuInfo = _filterBasicList(cros, 'cpuInfo', True, listLimit)
|
||||||
|
if cpuInfo:
|
||||||
|
showJSON('cpuInfo', cpuInfo, dictObjectsKey={'cpuInfo': 'model'})
|
||||||
cpuStatusReports = _filterCPUStatusReports(cros, True, listLimit, startTime, endTime)
|
cpuStatusReports = _filterCPUStatusReports(cros, True, listLimit, startTime, endTime)
|
||||||
if cpuStatusReports:
|
if cpuStatusReports:
|
||||||
printKeyValueList(['cpuStatusReports'])
|
printKeyValueList(['cpuStatusReports'])
|
||||||
@@ -24058,6 +24069,12 @@ def infoCrOSDevices(entityList):
|
|||||||
printKeyValueList(['cpuUtilizationPercentageInfo', cpuStatusReport['cpuUtilizationPercentageInfo']])
|
printKeyValueList(['cpuUtilizationPercentageInfo', cpuStatusReport['cpuUtilizationPercentageInfo']])
|
||||||
Ind.Decrement()
|
Ind.Decrement()
|
||||||
Ind.Decrement()
|
Ind.Decrement()
|
||||||
|
backlightInfo = _filterBasicList(cros, 'backLightInfo', True, listLimit)
|
||||||
|
if backlightInfo:
|
||||||
|
showJSON('backlightInfo', backlightInfo, dictObjectsKey={'backlightInfo': 'path'})
|
||||||
|
fanInfo = _filterBasicList(cros, 'fanInfo', True, listLimit)
|
||||||
|
if fanInfo:
|
||||||
|
showJSON('fanInfo', fanInfo)
|
||||||
diskVolumeReports = _filterBasicList(cros, 'diskVolumeReports', True, listLimit)
|
diskVolumeReports = _filterBasicList(cros, 'diskVolumeReports', True, listLimit)
|
||||||
if diskVolumeReports:
|
if diskVolumeReports:
|
||||||
printKeyValueList(['diskVolumeReports'])
|
printKeyValueList(['diskVolumeReports'])
|
||||||
@@ -24284,7 +24301,7 @@ CROS_ENTITIES_MAP = {
|
|||||||
}
|
}
|
||||||
|
|
||||||
CROS_INDEXED_TITLES = ['activeTimeRanges', 'recentUsers', 'deviceFiles',
|
CROS_INDEXED_TITLES = ['activeTimeRanges', 'recentUsers', 'deviceFiles',
|
||||||
'cpuStatusReports', 'diskVolumeReports', 'lastKnownNetwork', 'screenshotFiles', 'systemRamFreeReports']
|
'cpuStatusReports', 'cpuInfo', 'backlightInfo', 'fanInfo', 'diskVolumeReports', 'lastKnownNetwork', 'screenshotFiles', 'systemRamFreeReports']
|
||||||
|
|
||||||
# gam print cros [todrive <ToDriveAttribute>*]
|
# gam print cros [todrive <ToDriveAttribute>*]
|
||||||
# [(query <QueryCrOS>)|(queries <QueryCrOSList>) [querytime<String> <Time>]
|
# [(query <QueryCrOS>)|(queries <QueryCrOSList>) [querytime<String> <Time>]
|
||||||
@@ -24331,12 +24348,15 @@ def doPrintCrOSDevices(entityList=None):
|
|||||||
if not noLists and not selectedLists:
|
if not noLists and not selectedLists:
|
||||||
csvPF.WriteRowTitles(flattenJSON(cros, listLimit=listLimit, timeObjects=CROS_TIME_OBJECTS))
|
csvPF.WriteRowTitles(flattenJSON(cros, listLimit=listLimit, timeObjects=CROS_TIME_OBJECTS))
|
||||||
return
|
return
|
||||||
attrib = 'tpmVersionInfo'
|
for attrib in ['diskSpaceUsage', 'osUpdateStatus', 'tpmVersionInfo']:
|
||||||
if attrib in cros:
|
if attrib in cros:
|
||||||
for key, value in sorted(iter(cros[attrib].items())):
|
for key, value in sorted(iter(cros[attrib].items())):
|
||||||
attribKey = f'{attrib}{GC.Values[GC.CSV_OUTPUT_SUBFIELD_DELIMITER]}{key}'
|
attribKey = f'{attrib}{GC.Values[GC.CSV_OUTPUT_SUBFIELD_DELIMITER]}{key}'
|
||||||
cros[attribKey] = value
|
if key not in CROS_TIME_OBJECTS:
|
||||||
cros.pop(attrib)
|
cros[attribKey] = value
|
||||||
|
else:
|
||||||
|
cros[attribKey] = formatLocalTime(value)
|
||||||
|
cros.pop(attrib)
|
||||||
activeTimeRanges = _filterActiveTimeRanges(cros, selectedLists.get('activeTimeRanges', False), listLimit, startDate, endDate, activeTimeRangesOrder)
|
activeTimeRanges = _filterActiveTimeRanges(cros, selectedLists.get('activeTimeRanges', False), listLimit, startDate, endDate, activeTimeRangesOrder)
|
||||||
recentUsers = _filterRecentUsers(cros, selectedLists.get('recentUsers', False), listLimit)
|
recentUsers = _filterRecentUsers(cros, selectedLists.get('recentUsers', False), listLimit)
|
||||||
deviceFiles = _filterDeviceFiles(cros, selectedLists.get('deviceFiles', False), listLimit, startTime, endTime)
|
deviceFiles = _filterDeviceFiles(cros, selectedLists.get('deviceFiles', False), listLimit, startTime, endTime)
|
||||||
@@ -24350,8 +24370,10 @@ def doPrintCrOSDevices(entityList=None):
|
|||||||
return
|
return
|
||||||
row = {}
|
row = {}
|
||||||
for attrib in cros:
|
for attrib in cros:
|
||||||
if attrib not in {'kind', 'etag', 'tpmVersionInfo', 'recentUsers', 'activeTimeRanges',
|
if attrib in {'cpuInfo', 'backlightInfo', 'fanInfo'}:
|
||||||
'deviceFiles', 'cpuStatusReports', 'diskVolumeReports', 'lastKnownNetwork', 'screenshotFiles', 'systemRamFreeReports'}:
|
flattenJSON({attrib: cros[attrib]}, flattened=row)
|
||||||
|
elif attrib not in {'kind', 'etag', 'diskSpaceUsage', 'osUpdateStatus', 'tpmVersionInfo', 'activeTimeRanges', 'recentUsers',
|
||||||
|
'deviceFiles', 'cpuStatusReports', 'diskVolumeReports', 'lastKnownNetwork', 'screenshotFiles', 'systemRamFreeReports'}:
|
||||||
if attrib not in CROS_TIME_OBJECTS:
|
if attrib not in CROS_TIME_OBJECTS:
|
||||||
row[attrib] = cros[attrib]
|
row[attrib] = cros[attrib]
|
||||||
else:
|
else:
|
||||||
@@ -25949,7 +25971,7 @@ def _printChatItem(user, citem, parent, entityType, csvPF, FJQC, addCSVData=None
|
|||||||
def doSetupChat():
|
def doSetupChat():
|
||||||
checkForExtraneousArguments()
|
checkForExtraneousArguments()
|
||||||
_, chat , _ = buildChatServiceObject()
|
_, chat , _ = buildChatServiceObject()
|
||||||
writeStdout(Msg.TO_SET_UP_GOOGLE_CHAT.format(setupChatURL(chat)))
|
writeStdout(Msg.TO_SET_UP_GOOGLE_CHAT.format(setupChatURL(chat), GM.Globals[GM.OAUTH2SERVICE_JSON_DATA]['project_id']))
|
||||||
|
|
||||||
def getSpaceName(myarg):
|
def getSpaceName(myarg):
|
||||||
if myarg == 'space':
|
if myarg == 'space':
|
||||||
@@ -40817,6 +40839,11 @@ VAULT_RESPONSE_STATUS_MAP = {
|
|||||||
'needsaction': 'ATTENDEE_RESPONSE_NEEDS_ACTION',
|
'needsaction': 'ATTENDEE_RESPONSE_NEEDS_ACTION',
|
||||||
'tentative': 'ATTENDEE_RESPONSE_TENTATIVE',
|
'tentative': 'ATTENDEE_RESPONSE_TENTATIVE',
|
||||||
}
|
}
|
||||||
|
VAULT_SHARED_DRIVES_OPTION_MAP = {
|
||||||
|
'included': 'INCLUDED',
|
||||||
|
'includedifaccountisnotamember': 'INCLUDED_IF_ACCOUNT_IS_NOT_A_MEMBER',
|
||||||
|
'notincluded': 'NOT_INCLUDED',
|
||||||
|
}
|
||||||
VAULT_VOICE_COVERED_DATA_MAP = {
|
VAULT_VOICE_COVERED_DATA_MAP = {
|
||||||
'calllogs': 'CALL_LOGS',
|
'calllogs': 'CALL_LOGS',
|
||||||
'textmessages': 'TEXT_MESSAGES',
|
'textmessages': 'TEXT_MESSAGES',
|
||||||
@@ -40875,7 +40902,7 @@ VAULT_QUERY_ARGS = [
|
|||||||
# calendar
|
# calendar
|
||||||
'locationquery', 'peoplequery', 'minuswords', 'responsestatuses', 'caldendarversiondate',
|
'locationquery', 'peoplequery', 'minuswords', 'responsestatuses', 'caldendarversiondate',
|
||||||
# drive
|
# drive
|
||||||
'driveclientsideencryption', 'driveversiondate', 'includeshareddrives', 'includeteamdrives',
|
'driveclientsideencryption', 'driveversiondate', 'includeshareddrives', 'includeteamdrives', 'shareddrivesoption',
|
||||||
# hangoutsChat
|
# hangoutsChat
|
||||||
'includerooms',
|
'includerooms',
|
||||||
# mail
|
# mail
|
||||||
@@ -40945,7 +40972,9 @@ def _buildVaultQuery(myarg, query, corpusArgumentMap):
|
|||||||
elif myarg == 'driveversiondate':
|
elif myarg == 'driveversiondate':
|
||||||
query.setdefault('driveOptions', {})['versionDate'] = getTimeOrDeltaFromNow()
|
query.setdefault('driveOptions', {})['versionDate'] = getTimeOrDeltaFromNow()
|
||||||
elif myarg in {'includeshareddrives', 'includeteamdrives'}:
|
elif myarg in {'includeshareddrives', 'includeteamdrives'}:
|
||||||
query.setdefault('driveOptions', {})['includeSharedDrives'] = getBoolean()
|
query.setdefault('driveOptions', {})['sharedDrivesOption'] = 'INCLUDED' if getBoolean() else 'INCLUDED_IF_ACCOUNT_IS_NOT_A_MEMBER'
|
||||||
|
elif myarg == 'shareddrivesoption':
|
||||||
|
query.setdefault('driveOptions', {})['sharedDrivesOption'] = getChoice(VAULT_SHARED_DRIVES_OPTION_MAP, mapChoice=True)
|
||||||
elif myarg == 'driveclientsideencryption':
|
elif myarg == 'driveclientsideencryption':
|
||||||
query.setdefault('driveOptions', {})['clientSideEncryptedOption'] = getChoice(VAULT_CSE_OPTION_MAP, mapChoice=True)
|
query.setdefault('driveOptions', {})['clientSideEncryptedOption'] = getChoice(VAULT_CSE_OPTION_MAP, mapChoice=True)
|
||||||
# hangoutsChat
|
# hangoutsChat
|
||||||
@@ -40979,7 +41008,8 @@ def _validateVaultQuery(body, corpusArgumentMap):
|
|||||||
# [terms <String>] [start|starttime <Date>|<Time>] [end|endtime <Date>|<Time>] [timezone <TimeZone>]
|
# [terms <String>] [start|starttime <Date>|<Time>] [end|endtime <Date>|<Time>] [timezone <TimeZone>]
|
||||||
# [locationquery <StringList>] [peoplequery <StringList>] [minuswords <StringList>]
|
# [locationquery <StringList>] [peoplequery <StringList>] [minuswords <StringList>]
|
||||||
# [responsestatuses <AttendeeStatus>(,<AttendeeStatus>)*] [calendarversiondate <Date>|<Time>]
|
# [responsestatuses <AttendeeStatus>(,<AttendeeStatus>)*] [calendarversiondate <Date>|<Time>]
|
||||||
# [includeshareddrives <Boolean>] [driveversiondate <Date>|<Time>] [includeaccessinfo <Boolean>]
|
# [(includeshareddrives <Boolean>)|(shareddrivesoption included|included_if_account_is_not_a_member|not_included)]
|
||||||
|
# [driveversiondate <Date>|<Time>] [includeaccessinfo <Boolean>]
|
||||||
# [driveclientsideencryption any|encrypted|unencrypted]
|
# [driveclientsideencryption any|encrypted|unencrypted]
|
||||||
# [includerooms <Boolean>]
|
# [includerooms <Boolean>]
|
||||||
# [excludedrafts <Boolean>] [mailclientsideencryption any|encrypted|unencrypted]
|
# [excludedrafts <Boolean>] [mailclientsideencryption any|encrypted|unencrypted]
|
||||||
@@ -41050,7 +41080,7 @@ def doCreateVaultExport():
|
|||||||
try:
|
try:
|
||||||
export = callGAPI(v.matters().exports(), 'create',
|
export = callGAPI(v.matters().exports(), 'create',
|
||||||
throwReasons=[GAPI.ALREADY_EXISTS, GAPI.BAD_REQUEST, GAPI.BACKEND_ERROR, GAPI.INVALID_ARGUMENT,
|
throwReasons=[GAPI.ALREADY_EXISTS, GAPI.BAD_REQUEST, GAPI.BACKEND_ERROR, GAPI.INVALID_ARGUMENT,
|
||||||
GAPI.INVALID, GAPI.FAILED_PRECONDITION, GAPI.FORBIDDEN, GAPI.QUOTA_EXCEEDED],
|
GAPI.INVALID, GAPI.FAILED_PRECONDITION, GAPI.FORBIDDEN, GAPI.QUOTA_EXCEEDED, GAPI.NOT_FOUND],
|
||||||
matterId=matterId, body=body)
|
matterId=matterId, body=body)
|
||||||
if not returnIdOnly:
|
if not returnIdOnly:
|
||||||
entityActionPerformed([Ent.VAULT_MATTER, matterNameId, Ent.VAULT_EXPORT, formatVaultNameId(export['name'], export['id'])])
|
entityActionPerformed([Ent.VAULT_MATTER, matterNameId, Ent.VAULT_EXPORT, formatVaultNameId(export['name'], export['id'])])
|
||||||
@@ -41059,7 +41089,7 @@ def doCreateVaultExport():
|
|||||||
else:
|
else:
|
||||||
writeStdout(f'{export["id"]}\n')
|
writeStdout(f'{export["id"]}\n')
|
||||||
except (GAPI.alreadyExists, GAPI.badRequest, GAPI.backendError, GAPI.invalidArgument,
|
except (GAPI.alreadyExists, GAPI.badRequest, GAPI.backendError, GAPI.invalidArgument,
|
||||||
GAPI.invalid, GAPI.failedPrecondition, GAPI.forbidden, GAPI.quotaExceeded) as e:
|
GAPI.invalid, GAPI.failedPrecondition, GAPI.forbidden, GAPI.quotaExceeded, GAPI.notFound) as e:
|
||||||
entityActionFailedWarning([Ent.VAULT_MATTER, matterNameId, Ent.VAULT_EXPORT, body.get('name')], str(e))
|
entityActionFailedWarning([Ent.VAULT_MATTER, matterNameId, Ent.VAULT_EXPORT, body.get('name')], str(e))
|
||||||
|
|
||||||
# gam delete vaultexport|export <ExportItem> matter <MatterItem>
|
# gam delete vaultexport|export <ExportItem> matter <MatterItem>
|
||||||
@@ -41573,7 +41603,7 @@ def _setHoldQuery(body, queryParameters):
|
|||||||
# [terms <String>] [start|starttime <Date>|<Time>] [end|endtime <Date>|<Time>]
|
# [terms <String>] [start|starttime <Date>|<Time>] [end|endtime <Date>|<Time>]
|
||||||
# [includerooms <Boolean>]
|
# [includerooms <Boolean>]
|
||||||
# [covereddata calllogs|textmessages|voicemails]
|
# [covereddata calllogs|textmessages|voicemails]
|
||||||
# [includeshareddrives|includeteamdrives <Boolean>]
|
# [includeshareddrives <Boolean>]
|
||||||
# [showdetails|returnidonly]
|
# [showdetails|returnidonly]
|
||||||
def doCreateVaultHold():
|
def doCreateVaultHold():
|
||||||
v = buildGAPIObject(API.VAULT)
|
v = buildGAPIObject(API.VAULT)
|
||||||
@@ -41639,7 +41669,7 @@ def doCreateVaultHold():
|
|||||||
# [terms <String>] [start|starttime <Date>|<Time>] [end|endtime <Date>|<Time>]
|
# [terms <String>] [start|starttime <Date>|<Time>] [end|endtime <Date>|<Time>]
|
||||||
# [includerooms <Boolean>]
|
# [includerooms <Boolean>]
|
||||||
# [covereddata calllogs|textmessages|voicemails]
|
# [covereddata calllogs|textmessages|voicemails]
|
||||||
# [includeshareddrives|includeteamdrives <Boolean>]
|
# [includeshareddrives <Boolean>]
|
||||||
# [showdetails]
|
# [showdetails]
|
||||||
def doUpdateVaultHold():
|
def doUpdateVaultHold():
|
||||||
v = buildGAPIObject(API.VAULT)
|
v = buildGAPIObject(API.VAULT)
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
# -*- coding: utf-8 -*-
|
# -*- coding: utf-8 -*-
|
||||||
|
|
||||||
# Copyright (C) 2024 Ross Scroggs All Rights Reserved.
|
# Copyright (C) 2025 Ross Scroggs All Rights Reserved.
|
||||||
#
|
#
|
||||||
# All Rights Reserved.
|
# All Rights Reserved.
|
||||||
#
|
#
|
||||||
@@ -504,13 +504,15 @@ TO = 'To'
|
|||||||
TO_LC = 'to'
|
TO_LC = 'to'
|
||||||
TO_MAXIMUM_OF = 'to maximum of'
|
TO_MAXIMUM_OF = 'to maximum of'
|
||||||
TO_SET_UP_GOOGLE_CHAT = """
|
TO_SET_UP_GOOGLE_CHAT = """
|
||||||
To set up Google Chat for your API project, please go to:
|
To set up Google Chat for your current project, please go to:
|
||||||
|
|
||||||
{0}
|
{0}
|
||||||
|
|
||||||
and follow the instructions at:
|
and follow the instructions at:
|
||||||
|
|
||||||
https://github.com/GAM-team/GAM/wiki/Chat-Bot#set-up-a-chat-bot
|
https://github.com/GAM-team/GAM/wiki/Chat-Bot#set-up-a-chat-bot
|
||||||
|
|
||||||
|
You'll use projects/{1}/topics/no-topic in Connection settings Cloud Pub/Sub Topic Name
|
||||||
"""
|
"""
|
||||||
TOTAL_ITEMS_IN_ENTITY = 'Total {0} in {1}'
|
TOTAL_ITEMS_IN_ENTITY = 'Total {0} in {1}'
|
||||||
TRIMMED_MESSAGE_FROM_LENGTH_TO_MAXIMUM = 'Trimmed message of length {0} to maximum length {1}'
|
TRIMMED_MESSAGE_FROM_LENGTH_TO_MAXIMUM = 'Trimmed message of length {0} to maximum length {1}'
|
||||||
|
|||||||
@@ -10,6 +10,5 @@ httplib2>=0.22.0
|
|||||||
lxml>=5.4.0
|
lxml>=5.4.0
|
||||||
passlib>=1.7.4
|
passlib>=1.7.4
|
||||||
pathvalidate>=3.2.3
|
pathvalidate>=3.2.3
|
||||||
pyscard==2.2.1
|
|
||||||
python-dateutil
|
python-dateutil
|
||||||
yubikey-manager>=5.6.1
|
yubikey-manager>=5.6.1
|
||||||
|
|||||||
@@ -37,7 +37,6 @@ install_requires =
|
|||||||
lxml >= 5.4.0
|
lxml >= 5.4.0
|
||||||
passlib >= 1.7.4
|
passlib >= 1.7.4
|
||||||
pathvalidate >= 3.2.3
|
pathvalidate >= 3.2.3
|
||||||
pyscard == 2.2.1
|
|
||||||
python-dateutil
|
python-dateutil
|
||||||
yubikey-manager >= 5.6.1
|
yubikey-manager >= 5.6.1
|
||||||
|
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
# Chat Bot
|
# Chat Bot
|
||||||
|
- [Introduction](#introduction)
|
||||||
|
- [Set up a Chat Bot](#set-up-a-chat-bot)
|
||||||
- [API documentation](#api-documentation)
|
- [API documentation](#api-documentation)
|
||||||
- [Definitions](#definitions)
|
- [Definitions](#definitions)
|
||||||
- [Set up a Chat Bot](#set-up-a-chat-bot)
|
|
||||||
- [Display Rooms and Chats to which your Bot belongs](#display-rooms-and-chats-to-which-your-bot-belongs)
|
- [Display Rooms and Chats to which your Bot belongs](#display-rooms-and-chats-to-which-your-bot-belongs)
|
||||||
- [Display Members of a Room or Chat](#display-members-of-a-room-or-chat)
|
- [Display Members of a Room or Chat](#display-members-of-a-room-or-chat)
|
||||||
- [Create a Chat Message](#create-a-chat-message)
|
- [Create a Chat Message](#create-a-chat-message)
|
||||||
@@ -10,6 +10,43 @@
|
|||||||
- [Delete a Chat Message](#delete-a-chat-message)
|
- [Delete a Chat Message](#delete-a-chat-message)
|
||||||
- [Display a Chat Message](#display-a-chat-message)
|
- [Display a Chat Message](#display-a-chat-message)
|
||||||
|
|
||||||
|
## Introduction
|
||||||
|
To use these commands you must update your service account authorization.
|
||||||
|
```
|
||||||
|
gam user user@domain.com update serviceaccount
|
||||||
|
|
||||||
|
[*] 4) Chat API - Memberships (supports readonly)
|
||||||
|
[*] 5) Chat API - Memberships Admin (supports readonly)
|
||||||
|
[*] 6) Chat API - Messages (supports readonly)
|
||||||
|
[*] 7) Chat API - Spaces (supports readonly)
|
||||||
|
[*] 8) Chat API - Spaces Admin (supports readonly)
|
||||||
|
[*] 9) Chat API - Spaces Delete
|
||||||
|
[*] 10) Chat API - Spaces Delete Admin
|
||||||
|
```
|
||||||
|
|
||||||
|
Added `use_chat_admin_access` Boolean variable to `gam.cfg`.
|
||||||
|
```
|
||||||
|
* When False, GAM uses user access when making all Chat API calls. For calls that support admin access,
|
||||||
|
this can be overridden with the asadmin command line option.
|
||||||
|
* When True, GAM uses admin access for Chat API calls that support admin access; other calls will use user access.
|
||||||
|
* Default: False
|
||||||
|
```
|
||||||
|
|
||||||
|
Google requires that you have a Chat Bot configured in order to use the Chat API; set up a Chat Bot as described in the next section.
|
||||||
|
|
||||||
|
## Set up a Chat Bot
|
||||||
|
GAM is capable of acting as a Chat Bot and sending messages to Chat Rooms or direct messages to users.
|
||||||
|
|
||||||
|
Even if you're not going to use GAM as a Chat Bot, you have to configure a Chat Bot as it is required by the Chat API in [Users - Chat](Users-Chat).
|
||||||
|
|
||||||
|
* Run the command `gam setup chat`; it will point you to a URL to configure your Chat Bot.
|
||||||
|
* Enter an App name and Description of your choosing.
|
||||||
|
* For the Avatar URL you can use `https://dummyimage.com/384x256/4d4d4d/0011ff.png&text=+GAM` or a public URL to an image of your own choosing.
|
||||||
|
* In Functionality, uncheck both "Receive 1:1 messages" and "Join spaces and group conversations"
|
||||||
|
* In Connection settings, choose "Cloud Pub/Sub" and enter `projects/<ProjectID>/topics/no-topic` for the Topic Name. Replace `<ProjectID>` with your GAM project ID. GAM doesn't yet listen to pub/sub so this option is not used.
|
||||||
|
* In Visibility, uncheck "Make this Chat app available to specific people and groups in Domain Workspace".
|
||||||
|
* Click Save.
|
||||||
|
|
||||||
## API documentation
|
## API documentation
|
||||||
* https://developers.google.com/chat/concepts
|
* https://developers.google.com/chat/concepts
|
||||||
* https://developers.google.com/chat/reference/rest
|
* https://developers.google.com/chat/reference/rest
|
||||||
@@ -102,19 +139,6 @@
|
|||||||
<ChatMessageFieldNameList> ::= "<ChatMessageFieldName>(,<ChatMessageFieldName>)*"
|
<ChatMessageFieldNameList> ::= "<ChatMessageFieldName>(,<ChatMessageFieldName>)*"
|
||||||
```
|
```
|
||||||
|
|
||||||
## Set up a Chat Bot
|
|
||||||
Since GAM 6.04.00, GAM is capable of acting as a Chat Bot and sending messages to Chat Rooms or direct messages to users. You first need to configure your Chat Bot.
|
|
||||||
|
|
||||||
* Run the command `gam setup chat`; it will point you to a URL to configure your Chat Bot.
|
|
||||||
* Enter an App name and Description of your choosing.
|
|
||||||
* For the Avatar URL you can use `https://dummyimage.com/384x256/4d4d4d/0011ff.png&text=+GAM` or a public URL to an image of your own choosing.
|
|
||||||
* In Functionality, uncheck both "Receive 1:1 messages" and "Join spaces and group conversations"
|
|
||||||
* In Connection settings, choose "Cloud Pub/Sub" and enter `projects/<ProjectID>/topics/no-topic` for the topic name. Replace `<ProjectID>` with your GAM project ID. GAM doesn't yet listen to pub/sub so this option is not used.
|
|
||||||
* In Visibility, uncheck "Make this Chat app available to specific people and groups in Domain Workspace".
|
|
||||||
* Click Save.
|
|
||||||
|
|
||||||
----
|
|
||||||
|
|
||||||
## Display Rooms and Chats to which your Bot belongs
|
## Display Rooms and Chats to which your Bot belongs
|
||||||
Display the spaces to which your Chat Bot can send messages.
|
Display the spaces to which your Chat Bot can send messages.
|
||||||
A space can be a direct message to a user, a chat group or a chat room.
|
A space can be a direct message to a user, a chat group or a chat room.
|
||||||
|
|||||||
@@ -106,12 +106,14 @@ The second form is backwards compatible with Legacy GAM and selection with `<CrO
|
|||||||
autoupdatethrough|
|
autoupdatethrough|
|
||||||
backlightinfo|
|
backlightinfo|
|
||||||
bootmode|
|
bootmode|
|
||||||
|
chromeostype|
|
||||||
cpuinfo|
|
cpuinfo|
|
||||||
cpustatusreports|
|
cpustatusreports|
|
||||||
deprovisionreason|
|
deprovisionreason|
|
||||||
devicefiles|
|
devicefiles|
|
||||||
deviceid|
|
deviceid|
|
||||||
devicelicensetype|
|
devicelicensetype|
|
||||||
|
diskspaceusage|
|
||||||
diskvolumereports|
|
diskvolumereports|
|
||||||
dockmacaddress|
|
dockmacaddress|
|
||||||
ethernetmacaddress|
|
ethernetmacaddress|
|
||||||
@@ -119,6 +121,7 @@ The second form is backwards compatible with Legacy GAM and selection with `<CrO
|
|||||||
extendedsupporteligible|
|
extendedsupporteligible|
|
||||||
extendedsupportstart|
|
extendedsupportstart|
|
||||||
extendedsupportenabled|
|
extendedsupportenabled|
|
||||||
|
faninfo|
|
||||||
firmwareversion|
|
firmwareversion|
|
||||||
firstenrollmenttime|
|
firstenrollmenttime|
|
||||||
lastdeprovisiontimestamp|
|
lastdeprovisiontimestamp|
|
||||||
|
|||||||
@@ -10,6 +10,27 @@ Add the `-s` option to the end of the above commands to suppress creating the `g
|
|||||||
|
|
||||||
See [Downloads-Installs-GAM7](https://github.com/GAM-team/GAM/wiki/Downloads-Installs) for Windows or other options, including manual installation
|
See [Downloads-Installs-GAM7](https://github.com/GAM-team/GAM/wiki/Downloads-Installs) for Windows or other options, including manual installation
|
||||||
|
|
||||||
|
### 7.07.16
|
||||||
|
|
||||||
|
Added `chromeostype`, `diskspaceusage` and `faninfo` to `<CrOSFieldName>` for use in `gam info|print cros`.
|
||||||
|
|
||||||
|
Fixed bugs/cleaned output in `gam info|print cros`.
|
||||||
|
|
||||||
|
### 7.07.15
|
||||||
|
|
||||||
|
Added option `shareddrivesoption included|included_if_account_is_not_a_member|not_included` to `gam create vaultexport`.
|
||||||
|
|
||||||
|
The previous option `includeshareddrives <Boolean>` is mapped as follows:
|
||||||
|
* `includeshareddrives false` - `shareddrivesoption included_if_account_is_not_a_member`
|
||||||
|
* `includeshareddrives true` - `shareddrivesoption included`
|
||||||
|
|
||||||
|
### 7.07.14
|
||||||
|
|
||||||
|
Update `gam setup chat` output to include the following that shows the actual Cloud Pub/Sub Topic Name.
|
||||||
|
```
|
||||||
|
You'll use projects/<ProjectID>/topics/no-topic in Connection settings Cloud Pub/Sub Topic Name
|
||||||
|
```
|
||||||
|
|
||||||
### 7.07.13
|
### 7.07.13
|
||||||
|
|
||||||
Added option `showitemcountonly` to `gam [<UserTypeEntity>] print|show shareddrives` that causes GAM to display the
|
Added option `showitemcountonly` to `gam [<UserTypeEntity>] print|show shareddrives` that causes GAM to display the
|
||||||
|
|||||||
@@ -251,7 +251,7 @@ writes the credentials into the file oauth2.txt.
|
|||||||
admin@server:/Users/admin$ rm -f /Users/admin/GAMConfig/oauth2.txt
|
admin@server:/Users/admin$ rm -f /Users/admin/GAMConfig/oauth2.txt
|
||||||
admin@server:/Users/admin$ gam version
|
admin@server:/Users/admin$ gam version
|
||||||
WARNING: Config File: /Users/admin/GAMConfig/gam.cfg, Section: DEFAULT, Item: oauth2_txt, Value: /Users/admin/GAMConfig/oauth2.txt, Not Found
|
WARNING: Config File: /Users/admin/GAMConfig/gam.cfg, Section: DEFAULT, Item: oauth2_txt, Value: /Users/admin/GAMConfig/oauth2.txt, Not Found
|
||||||
GAM 7.07.13 - https://github.com/GAM-team/GAM - pyinstaller
|
GAM 7.07.16 - https://github.com/GAM-team/GAM - pyinstaller
|
||||||
GAM Team <google-apps-manager@googlegroups.com>
|
GAM Team <google-apps-manager@googlegroups.com>
|
||||||
Python 3.13.3 64-bit final
|
Python 3.13.3 64-bit final
|
||||||
MacOS Sequoia 15.5 x86_64
|
MacOS Sequoia 15.5 x86_64
|
||||||
@@ -989,7 +989,7 @@ writes the credentials into the file oauth2.txt.
|
|||||||
C:\>del C:\GAMConfig\oauth2.txt
|
C:\>del C:\GAMConfig\oauth2.txt
|
||||||
C:\>gam version
|
C:\>gam version
|
||||||
WARNING: Config File: C:\GAMConfig\gam.cfg, Section: DEFAULT, Item: oauth2_txt, Value: C:\GAMConfig\oauth2.txt, Not Found
|
WARNING: Config File: C:\GAMConfig\gam.cfg, Section: DEFAULT, Item: oauth2_txt, Value: C:\GAMConfig\oauth2.txt, Not Found
|
||||||
GAM 7.07.13 - https://github.com/GAM-team/GAM - pythonsource
|
GAM 7.07.16 - https://github.com/GAM-team/GAM - pythonsource
|
||||||
GAM Team <google-apps-manager@googlegroups.com>
|
GAM Team <google-apps-manager@googlegroups.com>
|
||||||
Python 3.13.3 64-bit final
|
Python 3.13.3 64-bit final
|
||||||
Windows-10-10.0.17134 AMD64
|
Windows-10-10.0.17134 AMD64
|
||||||
|
|||||||
@@ -15,8 +15,6 @@
|
|||||||
- [Bulk Operations](#bulk-operations)
|
- [Bulk Operations](#bulk-operations)
|
||||||
|
|
||||||
## Introduction
|
## Introduction
|
||||||
These features were added in version 6.60.00.
|
|
||||||
|
|
||||||
To use these commands you must update your service account authorization.
|
To use these commands you must update your service account authorization.
|
||||||
```
|
```
|
||||||
gam user user@domain.com update serviceaccount
|
gam user user@domain.com update serviceaccount
|
||||||
@@ -46,8 +44,8 @@ Google requires that you have a Chat Bot configured in order to use the Chat API
|
|||||||
* Enter an App name and Description of your choosing.
|
* Enter an App name and Description of your choosing.
|
||||||
* For the Avatar URL you can use `https://dummyimage.com/384x256/4d4d4d/0011ff.png&text=+GAM` or a public URL to an image of your own choosing.
|
* For the Avatar URL you can use `https://dummyimage.com/384x256/4d4d4d/0011ff.png&text=+GAM` or a public URL to an image of your own choosing.
|
||||||
* In Functionality, uncheck both "Receive 1:1 messages" and "Join spaces and group conversations"
|
* In Functionality, uncheck both "Receive 1:1 messages" and "Join spaces and group conversations"
|
||||||
* In Connection settings, choose "Cloud Pub/Sub" and enter `projects/<ProjectID>/topics/no-topic` for the topic name. Replace `<ProjectID>` with your GAM project ID. GAM doesn't yet listen to pub/sub so this option is not used.
|
* In Connection settings, choose "Cloud Pub/Sub" and enter `projects/<ProjectID>/topics/no-topic` for the Topic Name. Replace `<ProjectID>` with your GAM project ID. GAM doesn't yet listen to pub/sub so this option is not used.
|
||||||
* In Visibility, uncheck "Make this Chat app available to specific people and groups in Domain Workspace".
|
* In Visibility, uncheck "Make this Chat app available to specific people and groups in Domain Workspace".
|
||||||
* Click Save.
|
* Click Save.
|
||||||
|
|
||||||
## API documentation
|
## API documentation
|
||||||
|
|||||||
@@ -243,7 +243,8 @@ gam create vaultexport|export matter <MatterItem> [name <String>] corpus calenda
|
|||||||
[terms <String>] [start|starttime <Date>|<Time>] [end|endtime <Date>|<Time>] [timezone <TimeZone>]
|
[terms <String>] [start|starttime <Date>|<Time>] [end|endtime <Date>|<Time>] [timezone <TimeZone>]
|
||||||
[locationquery <StringList>] [peoplequery <StringList>] [minuswords <StringList>]
|
[locationquery <StringList>] [peoplequery <StringList>] [minuswords <StringList>]
|
||||||
[responsestatuses <AttendeeStatus>(,<AttendeeStatus>)*] [calendarversiondate <Date>|<Time>]
|
[responsestatuses <AttendeeStatus>(,<AttendeeStatus>)*] [calendarversiondate <Date>|<Time>]
|
||||||
[includeshareddrives <Boolean>] [driveversiondate <Date>|<Time>] [includeaccessinfo <Boolean>]
|
[(includeshareddrives <Boolean>)|(shareddrivesoption included|included_if_account_is_not_a_member|not_included)]
|
||||||
|
[driveversiondate <Date>|<Time>] [includeaccessinfo <Boolean>]
|
||||||
[driveclientsideencryption any|encrypted|unencrypted]
|
[driveclientsideencryption any|encrypted|unencrypted]
|
||||||
[includerooms <Boolean>]
|
[includerooms <Boolean>]
|
||||||
[excludedrafts <Boolean>] [mailclientsideencryption any|encrypted|unencrypted]
|
[excludedrafts <Boolean>] [mailclientsideencryption any|encrypted|unencrypted]
|
||||||
@@ -315,8 +316,11 @@ For `corpus calendar`, you can specify the format of the exported data:
|
|||||||
|
|
||||||
For `corpus drive`, you can specify advanced search options:
|
For `corpus drive`, you can specify advanced search options:
|
||||||
* `driveversiondate <Date>|<Time>` - Search the versions of the Drive file as of the reference date. These timestamps are in GMT and rounded down to the given date.
|
* `driveversiondate <Date>|<Time>` - Search the versions of the Drive file as of the reference date. These timestamps are in GMT and rounded down to the given date.
|
||||||
* `includeshareddrives False` - Do not include Shared Drives in the search, this is the default.
|
* `includeshareddrives False` - Mapped to `sharedrivesoption included_if_account_is_not_a_member`
|
||||||
* `includeshareddrives True` - Include Shared Drives in the search.
|
* `includeshareddrives True` - Mapped to `sharedrivesoption included`
|
||||||
|
* `sharedrivesoption included` - Resources in shared drives are included in the search
|
||||||
|
* `sharedrivesoption included_if_account_is_not_a_member` - Resources in shared drives where account is not a member are included in the search, this is the default
|
||||||
|
* `sharedrivesoption not_included` - Resources in shared drives are not included in the search
|
||||||
* `driveclientsideencryption any` - Include both client-side encrypted and unencrypted content in search, this is the default.
|
* `driveclientsideencryption any` - Include both client-side encrypted and unencrypted content in search, this is the default.
|
||||||
* `driveclientsideencryption encrypted` - Include client-side encrypted content only in search.
|
* `driveclientsideencryption encrypted` - Include client-side encrypted content only in search.
|
||||||
* `driveclientsideencryption unencrypted` - Include client-side unencrypted content only in search.
|
* `driveclientsideencryption unencrypted` - Include client-side unencrypted content only in search.
|
||||||
@@ -599,7 +603,7 @@ gam create vaulthold|hold matter <MatterItem> [name <String>] corpus calendar|dr
|
|||||||
[terms <String>] [start|starttime <Date>|<Time>] [end|endtime <Date>|<Time>]
|
[terms <String>] [start|starttime <Date>|<Time>] [end|endtime <Date>|<Time>]
|
||||||
[includerooms <Boolean>]
|
[includerooms <Boolean>]
|
||||||
[covereddata calllogs|textmessages|voicemails]
|
[covereddata calllogs|textmessages|voicemails]
|
||||||
[includeshareddrives|includeteamdrives <Boolean>]
|
[includeshareddrives <Boolean>]
|
||||||
[showdetails|returnidonly]
|
[showdetails|returnidonly]
|
||||||
```
|
```
|
||||||
Specify the name of the hold:
|
Specify the name of the hold:
|
||||||
@@ -621,8 +625,8 @@ Specify the search method, this option is required:
|
|||||||
The `query <QueryVaultCorpus>` option can still be used but it is much simpler to use the following options.
|
The `query <QueryVaultCorpus>` option can still be used but it is much simpler to use the following options.
|
||||||
|
|
||||||
For `corpus drive`, you can specify advanced search options:
|
For `corpus drive`, you can specify advanced search options:
|
||||||
* `includeshareddrives False` - Do not include Shared Drives in the search, this is the default.
|
* `includeshareddrives False` - Files in shared drives are not included in the hold, this is the default
|
||||||
* `includeshareddrives True` - Include Shared Drives in the search.
|
* `includeshareddrives True` - Files in shared drives are included in the hold
|
||||||
|
|
||||||
For `corpus mail`, you can specify search terms to limit the search.
|
For `corpus mail`, you can specify search terms to limit the search.
|
||||||
* `terms <String>` - [Vault search](https://support.google.com/vault/answer/2474474)
|
* `terms <String>` - [Vault search](https://support.google.com/vault/answer/2474474)
|
||||||
@@ -652,12 +656,12 @@ gam update vaulthold|hold <HoldItem> matter <MatterItem>
|
|||||||
[terms <String>] [start|starttime <Date>|<Time>] [end|endtime <Date>|<Time>]
|
[terms <String>] [start|starttime <Date>|<Time>] [end|endtime <Date>|<Time>]
|
||||||
[includerooms <Boolean>]
|
[includerooms <Boolean>]
|
||||||
[covereddata calllogs|textmessages|voicemails]
|
[covereddata calllogs|textmessages|voicemails]
|
||||||
[includeshareddrives|includeteamdrives <Boolean>]
|
[includeshareddrives <Boolean>]
|
||||||
[showdetails]
|
[showdetails]
|
||||||
```
|
```
|
||||||
For a hold with `corpus drive`, you can specify advanced search options:
|
For a hold with `corpus drive`, you can specify advanced search options:
|
||||||
* `includeshareddrives False` - Do not include Shared Drives in the search, this is the default.
|
* `includeshareddrives False` - Files in shared drives are not included in the hold, this is the default
|
||||||
* `includeshareddrives True` - Include Shared Drives in the search.
|
* `includeshareddrives True` - Files in shared drives are included in the hold
|
||||||
|
|
||||||
For a hold with `corpus mail`, you can specify search terms to limit the search.
|
For a hold with `corpus mail`, you can specify search terms to limit the search.
|
||||||
* `terms <String>` - [Vault search](https://support.google.com/vault/answer/2474474)
|
* `terms <String>` - [Vault search](https://support.google.com/vault/answer/2474474)
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
Print the current version of Gam with details
|
Print the current version of Gam with details
|
||||||
```
|
```
|
||||||
gam version
|
gam version
|
||||||
GAM 7.07.13 - https://github.com/GAM-team/GAM - pyinstaller
|
GAM 7.07.16 - https://github.com/GAM-team/GAM - pyinstaller
|
||||||
GAM Team <google-apps-manager@googlegroups.com>
|
GAM Team <google-apps-manager@googlegroups.com>
|
||||||
Python 3.13.3 64-bit final
|
Python 3.13.3 64-bit final
|
||||||
MacOS Sequoia 15.5 x86_64
|
MacOS Sequoia 15.5 x86_64
|
||||||
@@ -15,7 +15,7 @@ Time: 2023-06-02T21:10:00-07:00
|
|||||||
Print the current version of Gam with details and time offset information
|
Print the current version of Gam with details and time offset information
|
||||||
```
|
```
|
||||||
gam version timeoffset
|
gam version timeoffset
|
||||||
GAM 7.07.13 - https://github.com/GAM-team/GAM - pyinstaller
|
GAM 7.07.16 - https://github.com/GAM-team/GAM - pyinstaller
|
||||||
GAM Team <google-apps-manager@googlegroups.com>
|
GAM Team <google-apps-manager@googlegroups.com>
|
||||||
Python 3.13.3 64-bit final
|
Python 3.13.3 64-bit final
|
||||||
MacOS Sequoia 15.5 x86_64
|
MacOS Sequoia 15.5 x86_64
|
||||||
@@ -27,7 +27,7 @@ Your system time differs from www.googleapis.com by less than 1 second
|
|||||||
Print the current version of Gam with extended details and SSL information
|
Print the current version of Gam with extended details and SSL information
|
||||||
```
|
```
|
||||||
gam version extended
|
gam version extended
|
||||||
GAM 7.07.13 - https://github.com/GAM-team/GAM - pyinstaller
|
GAM 7.07.16 - https://github.com/GAM-team/GAM - pyinstaller
|
||||||
GAM Team <google-apps-manager@googlegroups.com>
|
GAM Team <google-apps-manager@googlegroups.com>
|
||||||
Python 3.13.3 64-bit final
|
Python 3.13.3 64-bit final
|
||||||
MacOS Sequoia 15.5 x86_64
|
MacOS Sequoia 15.5 x86_64
|
||||||
@@ -64,7 +64,7 @@ MacOS High Sierra 10.13.6 x86_64
|
|||||||
Path: /Users/Admin/bin/gam7
|
Path: /Users/Admin/bin/gam7
|
||||||
Version Check:
|
Version Check:
|
||||||
Current: 5.35.08
|
Current: 5.35.08
|
||||||
Latest: 7.07.13
|
Latest: 7.07.16
|
||||||
echo $?
|
echo $?
|
||||||
1
|
1
|
||||||
```
|
```
|
||||||
@@ -72,7 +72,7 @@ echo $?
|
|||||||
Print the current version number without details
|
Print the current version number without details
|
||||||
```
|
```
|
||||||
gam version simple
|
gam version simple
|
||||||
7.07.13
|
7.07.16
|
||||||
```
|
```
|
||||||
In Linux/MacOS you can do:
|
In Linux/MacOS you can do:
|
||||||
```
|
```
|
||||||
@@ -82,7 +82,7 @@ echo $VER
|
|||||||
Print the current version of Gam and address of this Wiki
|
Print the current version of Gam and address of this Wiki
|
||||||
```
|
```
|
||||||
gam help
|
gam help
|
||||||
GAM 7.07.13 - https://github.com/GAM-team/GAM
|
GAM 7.07.16 - https://github.com/GAM-team/GAM
|
||||||
GAM Team <google-apps-manager@googlegroups.com>
|
GAM Team <google-apps-manager@googlegroups.com>
|
||||||
Python 3.13.3 64-bit final
|
Python 3.13.3 64-bit final
|
||||||
MacOS Sequoia 15.5 x86_64
|
MacOS Sequoia 15.5 x86_64
|
||||||
|
|||||||
Reference in New Issue
Block a user