mirror of
https://github.com/GAM-team/GAM.git
synced 2026-06-24 08:01:36 +00:00
Fix display of contentRestrictions in print filelist (#1268)
Update documentation
This commit is contained in:
@@ -67,7 +67,9 @@ If an item contains spaces, it should be surrounded by ".
|
||||
gpresentation|
|
||||
gscript|
|
||||
gsite|
|
||||
gsheet|gspreadsheet
|
||||
gsheet|gspreadsheet|
|
||||
gshortcut|
|
||||
g3pshortcut
|
||||
<ProductID> ::=
|
||||
Google-Apps|
|
||||
Google-Chrome-Device-Management|
|
||||
@@ -91,14 +93,19 @@ If an item contains spaces, it should be surrounded by ".
|
||||
gams|postini|gsuitegams|gsuitepostini|gsuitemessagesecurity|Google-Apps-For-Postini|
|
||||
gal|gsl|lite|gsuitelite|Google-Apps-Lite|
|
||||
gau|gsb|unlimited|gsuitebusiness|Google-Apps-Unlimited|
|
||||
gae|gse|enterprise|gsuiteenterprise|1010020020|
|
||||
wsentplus|workspaceenterpriseplus|gae|gse|enterprise|gsuiteenterprise|1010020020|
|
||||
wsbizplus|workspacebusinessplus|1010020025|
|
||||
wsentstan|workspaceenterprisestandard|'1010020026|
|
||||
wsbizstart|workspacebusinessstarter|1010020027|
|
||||
wsbizstan|workspacebusinessstandard|1010020028|
|
||||
gsefe|e4e|gsuiteenterpriseeducation|1010310002|
|
||||
gsefes|e4es|gsuiteenterpriseeducationstudent|1010310003|
|
||||
gsbau|businessarchived|gsuitebusinessarchived|
|
||||
gseau|enterprisearchived|gsuiteenterprisearchived|
|
||||
chrome|cdm|googlechromedevicemanagement|Google-Chrome-Device-Management|
|
||||
coordinate|googlecoordinate|Google-Coordinate|
|
||||
d4e|driveenterprise|drive4enterprise|
|
||||
wsess|workspaceesentials|gsuiteessentials|essentials|d4e|driveenterprise|drive4enterprise|1010060001|
|
||||
wsentess|workspaceenterpriseessentials|1010060003|
|
||||
drive20gb|20gb|googledrivestorage20gb|Google-Drive-storage-20GB|
|
||||
drive50gb|50gb|googledrivestorage50gb|Google-Drive-storage-50GB|
|
||||
drive200gb|200gb|googledrivestorage200gb|Google-Drive-storage-200GB|
|
||||
@@ -308,6 +315,7 @@ If an item contains spaces, it should be surrounded by ".
|
||||
appdatacontents|
|
||||
cancomment|
|
||||
canreadrevisions|
|
||||
contentrestrictions|
|
||||
copyable|
|
||||
copyrequireswriterpermission|
|
||||
createddate|createdtime|
|
||||
@@ -681,16 +689,22 @@ Specify a collection of Users by directly specifying them or by specifiying item
|
||||
(localfile <FileName>)|
|
||||
(convert)|(ocr)|(ocrlanguage <Language>)|
|
||||
(restricted|restrict)|(starred|star)|(trashed|trash)|(viewed|view)|
|
||||
(contentrestrictions readonly false)|
|
||||
(contentrestrictions readonly true [reason <String>])|
|
||||
copyrequireswriterpermission|
|
||||
(lastviewedbyme <Time>)|(modifieddate|modifiedtime <Time>)|(description <String>)|(mimetype <MimeType>)|
|
||||
(parentid <DriveFolderID>)|(parentname <DriveFolderName>)|(anyownerparentname <DriveFolderName>)|writerscantshare
|
||||
(parentid <DriveFolderID>)|(parentname <DriveFolderName>)|(anyownerparentname <DriveFolderName>)|writerscantshare|
|
||||
(shortcut <DriveFileID>)
|
||||
<DriveFileUpdateAttributes> ::=
|
||||
(localfile <FileName>)|
|
||||
(convert)|(ocr)|(ocrlanguage <Language>)|
|
||||
(restricted|restrict <Boolean>)|(starred|star <Boolean>)|(trashed|trash <Boolean>)|(viewed|view <Boolean>)|
|
||||
(contentrestrictions readonly false)|
|
||||
(contentrestrictions readonly true [reason <String>])|
|
||||
(copyrequireswriterpermission <Boolean>)|
|
||||
(lastviewedbyme <Time>)|(modifieddate <Time>)|(description <String>)|(mimetype <MimeType>)|
|
||||
(parentid <DriveFolderID>)|(parentname <DriveFolderName>)|(anyownerparentname <DriveFolderName>)|writerscantshare
|
||||
(parentid <DriveFolderID>)|(parentname <DriveFolderName>)|(anyownerparentname <DriveFolderName>)|writerscantshare|
|
||||
(shortcut <DriveFileID>)
|
||||
<GroupSettingsAttribute> ::=
|
||||
(allowexternalmembers <Boolean>)|
|
||||
(allowwebposting <Boolean>)|
|
||||
@@ -1491,4 +1505,3 @@ gam <UserTypeEntity> show vacation [format]
|
||||
|
||||
gam <UserTypeEntity> signout
|
||||
gam <UserTypeEntity> turnoff2sv
|
||||
|
||||
|
||||
@@ -3197,10 +3197,21 @@ def printDriveFileList(users):
|
||||
'kind', 'etag', 'selfLink'
|
||||
]:
|
||||
continue
|
||||
x_attrib = f'{attrib}.{j}.{list_attrib}'
|
||||
if x_attrib not in titles:
|
||||
titles.append(x_attrib)
|
||||
a_file[x_attrib] = l_attrib[list_attrib]
|
||||
if not isinstance(l_attrib[list_attrib], dict):
|
||||
x_attrib = f'{attrib}.{j}.{list_attrib}'
|
||||
if x_attrib not in titles:
|
||||
titles.append(x_attrib)
|
||||
a_file[x_attrib] = l_attrib[list_attrib]
|
||||
else:
|
||||
for sl_attrib in l_attrib[list_attrib]:
|
||||
if sl_attrib in [
|
||||
'kind', 'etag', 'selfLink'
|
||||
]:
|
||||
continue
|
||||
x_attrib = f'{attrib}.{j}.{list_attrib}.{sl_attrib}'
|
||||
if x_attrib not in titles:
|
||||
titles.append(x_attrib)
|
||||
a_file[x_attrib] = l_attrib[list_attrib][sl_attrib]
|
||||
elif isinstance(f_file[attrib], (str, int, bool)):
|
||||
if attrib not in titles:
|
||||
titles.append(attrib)
|
||||
|
||||
Reference in New Issue
Block a user