Skip to content

Commit

Permalink
Multiple updates
Browse files Browse the repository at this point in the history
  • Loading branch information
taers232c committed Jun 20, 2021
1 parent d986218 commit ae8740b
Show file tree
Hide file tree
Showing 9 changed files with 238 additions and 106 deletions.
3 changes: 2 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ env:
- BUILD_OPENSSL_VERSION=1.1.1k
- MIN_OPENSSL_VERSION=1.1.1k
- PATCHELF_VERSION=0.12
- PYINSTALLER_COMMIT=e5dbb051bd3d53d6c2c70cbd87270eec1765da2e
# PYINSTALLER_VERSION can be full commit hash or version like v4.20
- PYINSTALLER_VERSION=000275e409640320cdd995a7f077abfdece86749

cache:
directories:
Expand Down
44 changes: 24 additions & 20 deletions src/GamCommands.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2860,7 +2860,7 @@ gam show licenses [(products|product <ProductIDList>)|(skus|sku <SKUIDList>)|all

<DeviceID> ::= devices/<String>
<DeviceUserID> ::= devices/<String>/deviceUsers/<String>
<DeviceType> ::= android|chrome_os|google_sync|linux|mac_os|windows
<DeviceType> ::= android|chrome_os|google_sync|ios|linux|mac_os|windows

<DeviceFieldName> ::=
androidspecificattributes|
Expand Down Expand Up @@ -3119,26 +3119,26 @@ gam show orgtree [fromparent <OrgUnitItem>] [batchsuborgs [<Boolean>]]

gam delete domaincontacts <PeopleResourceNameEntity>
gam info domaincontacts <PeopleResourceNameEntity>
[allfields|(fields <PeopleFieldNameList>)]
[allfields|(fields <PeopleFieldNameList>)] [showmetadata]
[formatjson]
gam print domaincontacts [todrive <ToDriveAttribute>*]
[query <String>]
[mergesources <PeopleMergeSourceName>]
[allfields|(fields <PeopleFieldNameList>)]
[allfields|(fields <PeopleFieldNameList>)] [showmetadata]
[formatjson [quotechar <Character>]]
gam show domaincontacts
[query <String>]
[mergesources <PeopleMergeSourceName>]
[allfields|(fields <PeopleFieldNameList>)]
[allfields|(fields <PeopleFieldNameList>)] [showmetadata]
[formatjson]

gam info domainprofiles <PeopleResourceNameEntity>
[allfields|(fields <PeopleFieldNameList>)]
[allfields|(fields <PeopleFieldNameList>)] [showmetadata]
[formatjson]
gam print domainprofiles [todrive <ToDriveAttribute>*]
[query <String>]
[mergesources <PeopleMergeSourceName>]
[allfields|(fields <PeopleFieldNameList>)]
[allfields|(fields <PeopleFieldNameList>)] [showmetadata]
[formatjson [quotechar <Character>]]
gam show domainprofiles
[query <String>]
Expand All @@ -3150,13 +3150,13 @@ gam print people [todrive <ToDriveAttribute>*]
[sources <PeopleSourceName>]
[query <String>]
[mergesources <PeopleMergeSourceName>]
[allfields|(fields <PeopleFieldNameList>)]
[allfields|(fields <PeopleFieldNameList>)] [showmetadata]
[formatjson [quotechar <Character>]]
gam show people
[sources <PeopleSourceName>]
[query <String>]
[mergesources <PeopleMergeSourceName>]
[allfields|(fields <PeopleFieldNameList>)]
[allfields|(fields <PeopleFieldNameList>)] [showmetadata]
[formatjson]

# Printers
Expand Down Expand Up @@ -5440,7 +5440,9 @@ gam <UserTypeEntity> update sendas <EmailAddress> [name <String>]
gam <UserTypeEntity> delete sendas <EmailAddressEntity>
gam <UserTypeEntity> info sendas <EmailAddressEntity> [compact|format|html]
gam <UserTypeEntity> show sendas [compact|format|html]
gam <UserTypeEntity> print sendas [compact] [todrive <ToDriveAttribute>*]
[primary] [default] [verifyonly]
gam <UserTypeEntity> print sendas [compact]
[primary] [default] [verifyonly] [todrive <ToDriveAttribute>*]

gam <UserTypeEntity> create|add smime file <FileName> [password <Password>]
[sendas|sendasemail <EmailAddress>] [default]
Expand All @@ -5458,8 +5460,10 @@ gam <UserTypeEntity> signature|sig
(replace <Tag> <UserReplacement>)*
[html [<Boolean>]] [name <String>] [replyto <EmailAddress>]
[default] [primary] [treatasalias <Boolean>]
gam <UserTypeEntity> show signature|sig [compact|format|html] [primary]
gam <UserTypeEntity> print signature [compact] [todrive <ToDriveAttribute>*]
gam <UserTypeEntity> show signature|sig [compact|format|html]
[primary] [default] [verifyonly]
gam <UserTypeEntity> print signature [compact]
[primary] [default] [verifyonly] [todrive <ToDriveAttribute>*]

gam <UserTypeEntity> vacation <Boolean> subject <String>
[message|htmlmessage <String>|(file|htmlfile <FileName> [charset <CharSet>])|(gdoc|ghtml <UserGoogleDoc>)]
Expand Down Expand Up @@ -5564,47 +5568,47 @@ gam <UserTypeEntity> sync license <SKUID> [product|productid <ProductID>] [addon
<PeopleFieldNameList> ::= "<PeopleFieldName>(,<PeopleFieldName>)*"

gam <UserTypeEntity> show peopleprofiles
[allfields|(fields <PeopleFieldNameList>)]
[allfields|(fields <PeopleFieldNameList>)] [showmetadata]
[formatjson]
gam <UserTypeEntity> print peopleprofiles [todrive <ToDriveAttribute>*]
[allfields|(fields <PeopleFieldNameList>)]
[allfields|(fields <PeopleFieldNameList>)] [showmetadata]
[formatjson [quotechar <Character>]]

gam <UserTypeEntity> show othercontacts
[query <String>]
[allfields|(fields <OtherContactFieldNameList>)]
[allfields|(fields <OtherContactFieldNameList>)] [showmetadata]
[formatjson]
gam <UserTypeEntity> print othercontacts [todrive <ToDriveAttribute>*]
[query <String>]
[allfields|(fields <OtherContactFieldNameList>)]
[allfields|(fields <OtherContactFieldNameList>)] [showmetadata]
[formatjson [quotechar <Character>]]

gam <UserTypeEntity> delete peoplecontacts <PeopleResourceNameEntity>
gam <UserTypeEntity> info peoplecontacts <PeopleResourceNameEntity>
[allfields|(fields <PeopleFieldNameList>)]
[allfields|(fields <PeopleFieldNameList>)] [showmetadata]
[formatjson]
gam <UserTypeEntity> show peoplecontacts
[query <String>]
[orderby firstname|lastname|(lastmodified ascending)|(lastnodified descending)
[allfields|(allfields|(fields <PeopleFieldNameList>))]
[allfields|(allfields|(fields <PeopleFieldNameList>))] [showmetadata]
[formatjson]
gam <UserTypeEntity> print peoplecontacts [todrive <ToDriveAttribute>*]
[query <String>]
[orderby firstname|lastname|(lastmodified ascending)|(lastnodified descending)
[allfields|(allfields|(fields <PeopleFieldNameList>))]
[allfields|(allfields|(fields <PeopleFieldNameList>))] [showmetadata]
[formatjson [quotechar <Character>]]

gam <UserTypeEntity> print people [todrive <ToDriveAttribute>*]
[sources <PeopleSourceName>]
[query <String>]
[mergesources <PeopleMergeSourceName>]
[allfields|(fields <PeopleFieldNameList>)]
[allfields|(fields <PeopleFieldNameList>)] [showmetadata]
[formatjson [quotechar <Character>]]
gam <UserTypeEntity> show people
[sources <PeopleSourceName>]
[query <String>]
[mergesources <PeopleMergeSourceName>]
[allfields|(fields <PeopleFieldNameList>)]
[allfields|(fields <PeopleFieldNameList>)] [showmetadata]
[formatjson]

<PeopleContactGroupFieldName> ::=
Expand Down
40 changes: 40 additions & 0 deletions src/GamUpdate.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,43 @@
6.04.07

Changed `config csv_input_row_filter|csv_output_row_filter` processing of blank fields
for `count<Operator><Number>` and `boolean:<Boolean>`. Previously, a blank field was
always treated a mismatch; now a blank field will be interpreted as `False` for `<Boolean>`
and `0` for `<Number>` and the match test will be performed.

Added options `primary` and `default`` to the following commands
so that only the primary and/or default signature/sendas is displayed
rather than all signatures/sendas.

Added option `verifyonly` to the following commands; it causes a Boolean
to be displayed in the `signature` field rather that the signature text;
this simplifies checking for users with undefined signatures.
```
gam <UserTypeEntity> show sendas [compact|format|html]
[primary] [default] [verifyonly]
gam <UserTypeEntity> print sendas [compact]
[primary] [default] [verifyonly] [todrive <ToDriveAttribute>*]
gam <UserTypeEntity> show signature|sig [compact|format|html]
[primary] [default] [verifyonly]
gam <UserTypeEntity> print signature [compact]
[primary] [default] [verifyonly] [todrive <ToDriveAttribute>*]
```

For example, this command will display a list of users without a primary email address signature (wrapped for readability):
```
gam config csv_output_row_filter "signature:boolean:false" csv_output_header_filter "User,displayName,signature"
auto_batch_min 1 num_threads 10 redirect csv ./NoPrimarySignature.txt multiprocess
all users print signature primary verifyonly

Explanation:
config csv_output_row_filter "signature:boolean:false" - Output rows that indicate no signature
csv_output_header_filter "User,displayName,signature" - Output basic headers
auto_batch_min 1 num_threads 10 - Turn on parallel processing
redirect csv ./NoPrimarySignature.txt multiprocess - Intelligently combine output from all processes
all users - Process all non-suspended users
print signature primary verifyonly - Display state of primary email address signature
```

6.04.06

Eliminated `ios` from `<DeviceType> ::= android|chrome_os|google_sync|linux|mac_os|windows`
Expand Down
Loading

0 comments on commit ae8740b

Please sign in to comment.