mirror of
https://github.com/GAM-team/GAM.git
synced 2026-07-03 12:21:35 +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|
|
gpresentation|
|
||||||
gscript|
|
gscript|
|
||||||
gsite|
|
gsite|
|
||||||
gsheet|gspreadsheet
|
gsheet|gspreadsheet|
|
||||||
|
gshortcut|
|
||||||
|
g3pshortcut
|
||||||
<ProductID> ::=
|
<ProductID> ::=
|
||||||
Google-Apps|
|
Google-Apps|
|
||||||
Google-Chrome-Device-Management|
|
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|
|
gams|postini|gsuitegams|gsuitepostini|gsuitemessagesecurity|Google-Apps-For-Postini|
|
||||||
gal|gsl|lite|gsuitelite|Google-Apps-Lite|
|
gal|gsl|lite|gsuitelite|Google-Apps-Lite|
|
||||||
gau|gsb|unlimited|gsuitebusiness|Google-Apps-Unlimited|
|
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|
|
gsefe|e4e|gsuiteenterpriseeducation|1010310002|
|
||||||
gsefes|e4es|gsuiteenterpriseeducationstudent|1010310003|
|
gsefes|e4es|gsuiteenterpriseeducationstudent|1010310003|
|
||||||
gsbau|businessarchived|gsuitebusinessarchived|
|
gsbau|businessarchived|gsuitebusinessarchived|
|
||||||
gseau|enterprisearchived|gsuiteenterprisearchived|
|
gseau|enterprisearchived|gsuiteenterprisearchived|
|
||||||
chrome|cdm|googlechromedevicemanagement|Google-Chrome-Device-Management|
|
chrome|cdm|googlechromedevicemanagement|Google-Chrome-Device-Management|
|
||||||
coordinate|googlecoordinate|Google-Coordinate|
|
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|
|
drive20gb|20gb|googledrivestorage20gb|Google-Drive-storage-20GB|
|
||||||
drive50gb|50gb|googledrivestorage50gb|Google-Drive-storage-50GB|
|
drive50gb|50gb|googledrivestorage50gb|Google-Drive-storage-50GB|
|
||||||
drive200gb|200gb|googledrivestorage200gb|Google-Drive-storage-200GB|
|
drive200gb|200gb|googledrivestorage200gb|Google-Drive-storage-200GB|
|
||||||
@@ -308,6 +315,7 @@ If an item contains spaces, it should be surrounded by ".
|
|||||||
appdatacontents|
|
appdatacontents|
|
||||||
cancomment|
|
cancomment|
|
||||||
canreadrevisions|
|
canreadrevisions|
|
||||||
|
contentrestrictions|
|
||||||
copyable|
|
copyable|
|
||||||
copyrequireswriterpermission|
|
copyrequireswriterpermission|
|
||||||
createddate|createdtime|
|
createddate|createdtime|
|
||||||
@@ -681,16 +689,22 @@ Specify a collection of Users by directly specifying them or by specifiying item
|
|||||||
(localfile <FileName>)|
|
(localfile <FileName>)|
|
||||||
(convert)|(ocr)|(ocrlanguage <Language>)|
|
(convert)|(ocr)|(ocrlanguage <Language>)|
|
||||||
(restricted|restrict)|(starred|star)|(trashed|trash)|(viewed|view)|
|
(restricted|restrict)|(starred|star)|(trashed|trash)|(viewed|view)|
|
||||||
|
(contentrestrictions readonly false)|
|
||||||
|
(contentrestrictions readonly true [reason <String>])|
|
||||||
copyrequireswriterpermission|
|
copyrequireswriterpermission|
|
||||||
(lastviewedbyme <Time>)|(modifieddate|modifiedtime <Time>)|(description <String>)|(mimetype <MimeType>)|
|
(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> ::=
|
<DriveFileUpdateAttributes> ::=
|
||||||
(localfile <FileName>)|
|
(localfile <FileName>)|
|
||||||
(convert)|(ocr)|(ocrlanguage <Language>)|
|
(convert)|(ocr)|(ocrlanguage <Language>)|
|
||||||
(restricted|restrict <Boolean>)|(starred|star <Boolean>)|(trashed|trash <Boolean>)|(viewed|view <Boolean>)|
|
(restricted|restrict <Boolean>)|(starred|star <Boolean>)|(trashed|trash <Boolean>)|(viewed|view <Boolean>)|
|
||||||
|
(contentrestrictions readonly false)|
|
||||||
|
(contentrestrictions readonly true [reason <String>])|
|
||||||
(copyrequireswriterpermission <Boolean>)|
|
(copyrequireswriterpermission <Boolean>)|
|
||||||
(lastviewedbyme <Time>)|(modifieddate <Time>)|(description <String>)|(mimetype <MimeType>)|
|
(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> ::=
|
<GroupSettingsAttribute> ::=
|
||||||
(allowexternalmembers <Boolean>)|
|
(allowexternalmembers <Boolean>)|
|
||||||
(allowwebposting <Boolean>)|
|
(allowwebposting <Boolean>)|
|
||||||
@@ -1491,4 +1505,3 @@ gam <UserTypeEntity> show vacation [format]
|
|||||||
|
|
||||||
gam <UserTypeEntity> signout
|
gam <UserTypeEntity> signout
|
||||||
gam <UserTypeEntity> turnoff2sv
|
gam <UserTypeEntity> turnoff2sv
|
||||||
|
|
||||||
|
|||||||
@@ -3197,10 +3197,21 @@ def printDriveFileList(users):
|
|||||||
'kind', 'etag', 'selfLink'
|
'kind', 'etag', 'selfLink'
|
||||||
]:
|
]:
|
||||||
continue
|
continue
|
||||||
|
if not isinstance(l_attrib[list_attrib], dict):
|
||||||
x_attrib = f'{attrib}.{j}.{list_attrib}'
|
x_attrib = f'{attrib}.{j}.{list_attrib}'
|
||||||
if x_attrib not in titles:
|
if x_attrib not in titles:
|
||||||
titles.append(x_attrib)
|
titles.append(x_attrib)
|
||||||
a_file[x_attrib] = l_attrib[list_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)):
|
elif isinstance(f_file[attrib], (str, int, bool)):
|
||||||
if attrib not in titles:
|
if attrib not in titles:
|
||||||
titles.append(attrib)
|
titles.append(attrib)
|
||||||
|
|||||||
Reference in New Issue
Block a user