mirror of
https://github.com/GAM-team/GAM.git
synced 2026-07-03 20:31:35 +00:00
Add dynamic option to update cigroup (#1381)
Update print|show teamdrive documentation
This commit is contained in:
@@ -223,6 +223,7 @@ If an item contains spaces, it should be surrounded by ".
|
|||||||
<QueryGmail> ::= <String> See: https://support.google.com/mail/answer/7190
|
<QueryGmail> ::= <String> See: https://support.google.com/mail/answer/7190
|
||||||
<QueryGroup> ::= <String> See: https://developers.google.com/admin-sdk/directory/v1/guides/search-groups
|
<QueryGroup> ::= <String> See: https://developers.google.com/admin-sdk/directory/v1/guides/search-groups
|
||||||
<QueryMobile> ::= <String> See: https://support.google.com/a/answer/7549103
|
<QueryMobile> ::= <String> See: https://support.google.com/a/answer/7549103
|
||||||
|
<QueryTeamDrive> ::= <String> See: https://developers.google.com/drive/api/v3/search-shareddrives
|
||||||
<QueryUser> ::= <String> See: https://developers.google.com/admin-sdk/directory/v1/guides/search-users
|
<QueryUser> ::= <String> See: https://developers.google.com/admin-sdk/directory/v1/guides/search-users
|
||||||
<QueryVaultCorpus> ::= <String> See: https://developers.google.com/vault/reference/rest/v1/matters.holds#CorpusQuery
|
<QueryVaultCorpus> ::= <String> See: https://developers.google.com/vault/reference/rest/v1/matters.holds#CorpusQuery
|
||||||
<RequestID> ::= <String>
|
<RequestID> ::= <String>
|
||||||
@@ -1691,8 +1692,8 @@ gam <UserTypeEntity> update teamdrive <TeamDriveID> [asadmin] [name <Name>]
|
|||||||
(<TeamDriveRestrictionsSubfieldName> <Boolean>)*
|
(<TeamDriveRestrictionsSubfieldName> <Boolean>)*
|
||||||
gam <UserTypeEntity> delete teamdrive <TeamDriveID>
|
gam <UserTypeEntity> delete teamdrive <TeamDriveID>
|
||||||
gam <UserTypeEntity> show teamdriveinfo <TeamDriveID> [asadmin]
|
gam <UserTypeEntity> show teamdriveinfo <TeamDriveID> [asadmin]
|
||||||
gam <UserTypeEntity> show teamdrives [asadmin]
|
gam <UserTypeEntity> show teamdrives [query <QueryTeamDrive>] [asadmin]
|
||||||
gam <UserTypeEntity> print teamdrives [todrive] [asadmin]
|
gam <UserTypeEntity> print teamdrives [query <QueryTeamDrive>] [todrive] [asadmin]
|
||||||
gam <UserTypeEntity> show teamdrivethemes
|
gam <UserTypeEntity> show teamdrivethemes
|
||||||
|
|
||||||
gam <UserTypeEntity> vacation <FalseValues>
|
gam <UserTypeEntity> vacation <FalseValues>
|
||||||
|
|||||||
@@ -44,7 +44,6 @@ def create():
|
|||||||
body['additionalGroupKeys'].append({'id': alias})
|
body['additionalGroupKeys'].append({'id': alias})
|
||||||
i += 2
|
i += 2
|
||||||
elif myarg in ['dynamic']:
|
elif myarg in ['dynamic']:
|
||||||
# As of 2020/06/25 this doesn't work (yet?)
|
|
||||||
body['dynamicGroupMetadata'] = {
|
body['dynamicGroupMetadata'] = {
|
||||||
'queries': [{
|
'queries': [{
|
||||||
'query': sys.argv[i + 1],
|
'query': sys.argv[i + 1],
|
||||||
@@ -823,6 +822,14 @@ def update():
|
|||||||
'cloudidentity.googleapis.com/groups.discussion_forum': ''
|
'cloudidentity.googleapis.com/groups.discussion_forum': ''
|
||||||
}
|
}
|
||||||
i += 1
|
i += 1
|
||||||
|
elif myarg in ['dynamic']:
|
||||||
|
body['dynamicGroupMetadata'] = {
|
||||||
|
'queries': [{
|
||||||
|
'query': sys.argv[i + 1],
|
||||||
|
'resourceType': 'USER'
|
||||||
|
}]
|
||||||
|
}
|
||||||
|
i += 2
|
||||||
else:
|
else:
|
||||||
controlflow.invalid_argument_exit(sys.argv[i],
|
controlflow.invalid_argument_exit(sys.argv[i],
|
||||||
'gam update cigroup')
|
'gam update cigroup')
|
||||||
|
|||||||
Reference in New Issue
Block a user