Skip to content

Commit

Permalink
Added commands to manage and display Google Keep notes.
Browse files Browse the repository at this point in the history
  • Loading branch information
taers232c committed Jul 18, 2021
1 parent e72a491 commit e5c6ba2
Show file tree
Hide file tree
Showing 7 changed files with 513 additions and 13 deletions.
49 changes: 47 additions & 2 deletions src/GamCommands.txt
Original file line number Diff line number Diff line change
Expand Up @@ -291,7 +291,7 @@ If an item contains spaces, it should be surrounded by ".
<CIGroupType> ::= customer|group|serviceaccount|user
<ChatMember> ::= spaces/<String>/members/<String>
<ChatMessage> ::= spaces/<String>/messages/<String>
<ChatSpace> ::= <spaces/<String> | <String>
<ChatSpace> ::= spaces/<String> | <String>
<ChatThread> ::= spaces/<String>/threads/<String>
<ClassroomInvitationID> ::= <String>
<ClientID> ::= <String>
Expand Down Expand Up @@ -400,6 +400,7 @@ If an item contains spaces, it should be surrounded by ".
<MessageID> ::= <String>
<MobileID> ::= <String>
<Namespace> ::= <String>
<NotesName> ::= notes/<String>
<NumberOfSeats> ::= <Number>
<OrgUnitID> ::= id:<String>
<OrgUnitPath> ::= /|(/<String>)+
Expand Down Expand Up @@ -561,6 +562,7 @@ If an item contains spaces, it should be surrounded by ".
<MimeTypeList> ::= "<MimeType>(,<MimeType>)*"
<MobileIDList> ::= "<MobileID>(,<MobileID>)*"
<NamespaceList> ::= "<Namespace>(,<Namespace>)*"
<NotesNameList> ::= "<NotesName>(,<NotesName)*"
<OrgUnitList> ::= "<OrgUnitItem>(,<OrgUnitItem>)*"
<PeopleResourceNameList> ::= "<PeopleResourceName>(,<PeopleResourceName>)*"
<PrinterIDList> ::= "<PrinterID>(,<PrinterID>)*"
Expand Down Expand Up @@ -872,10 +874,12 @@ Specify a collection of items by directly specifying them; the item type is dete
<MobileEntity> ::=
<MobileIDList> |
(query:<QueryMobile>) | (query <QueryMobile>)
<NotesNameEntity> ::=
<NotesNameList> | <FileSelector> | <CSVFileSelector> | <CSVkmdSelector> | <CSVDataSelector>
<OrgUnitEntity> ::=
<OrgUnitList> | <FileSelector> | <CSVFileSelector> | <CSVkmdSelector>
<PeopleResourceNameEntity> ::=
<PeopleResourceNameNameList> | <FileSelector> | <CSVFileSelector> | <CSVDataSelector>
<PeopleResourceNameList> | <FileSelector> | <CSVFileSelector> | <CSVDataSelector>
<PrinterIDEntity> ::=
<PrinterIDList> | <FileSelector> | <CSVFileSelector>
<RecipientEntity> ::=
Expand Down Expand Up @@ -5547,6 +5551,47 @@ gam print userinvitations [todrive <ToDriveAttribute>*]
gam check isinvitable|userinvitation <EmailAddress>
gam <UserTypeEntity> check isinvitable [todrive <ToDriveAttribute>*]

# Users - Keep Notes

gam <UserTypeEntity> create note [title <String>]
((text <String>)|
(textfile <FileName> [charset <CharSet>])|
(gdoc <UserGoogleDoc>)|
(json [charset <Charset>] <JSONData>)|(json file <FileName> [charset <Charset>]))
[copyacls]
[compact|formatjson|nodetails]
gam <UserTypeEntity> delete note <NoteNameEntity>

<NotesField> ::=
attachments|
body|
createtime|
name|
permissions|
title|
trashed|
trashtime|
updatetime
<NotesFieldList> ::= "<NotesField>(,<NotesField>)*"

gam <UserTypeEntity> info note <NotesNameEntity>
[fields <NotesFieldList>]
[compact|formatjson]

gam <UserTypeEntity> show notes
[fields <NotesFieldList>] [filter <String>]
[compact|formatjson]
gam <UserTypeEntity> print notes [todrive <ToDriveAttribute>*]
[fields <NotesFieldList>] [filter <String>]
[formatjson [quotechar <Character>]]

gam <UserTypeEntity> create noteacl <NotesNameEntity>
(user|group <EmailAddress>)+
(json [charset <Charset>] <JSONData>)|(json file <FileName> [charset <Charset>])
gam <UserTypeEntity> delete noteacl <NotesNameEntity>
(user|group <EmailAddress>)+
(json [charset <Charset>] <JSONData>)|(json file <FileName> [charset <Charset>])

# Users - Licenses

gam <UserTypeEntity> create|add license <SKUID> [product|productid <ProductID>] [preview] [actioncsv]
Expand Down
5 changes: 5 additions & 0 deletions src/GamUpdate.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
6.06.00

Added commands to manage and display Google Keep notes.
* https://github.com/taers232c/GAMADV-XTD3/wiki/Users-Keep

6.04.25

Updated random password processing in `gam create|update user`.
Expand Down

0 comments on commit e5c6ba2

Please sign in to comment.