Add option to update cigroup to allow updating a dynamic group to a security group (#1515)

This commit is contained in:
Ross Scroggs
2022-04-17 16:51:15 -07:00
committed by GitHub
parent 028ca15498
commit 809aae27b1
2 changed files with 8 additions and 1 deletions

View File

@@ -866,6 +866,13 @@ def update():
'cloudidentity.googleapis.com/groups.discussion_forum': ''
}
i += 1
elif myarg == 'dynamicsecurity':
body['labels'] = {
'cloudidentity.googleapis.com/groups.dynamic': '',
'cloudidentity.googleapis.com/groups.security': '',
'cloudidentity.googleapis.com/groups.discussion_forum': ''
}
i += 1
elif myarg in ['dynamic']:
body['dynamicGroupMetadata'] = {
'queries': [{