diff --git a/docs/GamUpdates.md b/docs/GamUpdates.md index 5cb7e6ac..bef7399a 100644 --- a/docs/GamUpdates.md +++ b/docs/GamUpdates.md @@ -10,6 +10,10 @@ Add the `-s` option to the end of the above commands to suppress creating the `g See [Downloads-Installs-GAM7](https://github.com/GAM-team/GAM/wiki/Downloads-Installs) for Windows or other options, including manual installation +### 7.00.39 + +Supported MacOS versions are now in the download filename. + ### 7.00.38 Fixed logic flaw in `gam print|show policies` where non-matching policies were displayed. diff --git a/src/GamUpdate.txt b/src/GamUpdate.txt index e6192595..736a4cae 100644 --- a/src/GamUpdate.txt +++ b/src/GamUpdate.txt @@ -1,3 +1,7 @@ +7.00.39 + +Supported MacOS versions are now in the download filename. + 7.00.38 Fixed logic flaw in `gam print|show policies` where non-matching policies were displayed. diff --git a/src/gam/__init__.py b/src/gam/__init__.py index 21d5982a..60ceca47 100755 --- a/src/gam/__init__.py +++ b/src/gam/__init__.py @@ -25,7 +25,7 @@ https://github.com/GAM-team/GAM/wiki """ __author__ = 'GAM Team ' -__version__ = '7.00.38' +__version__ = '7.00.39' __license__ = 'Apache License 2.0 (http://www.apache.org/licenses/LICENSE-2.0)' #pylint: disable=wrong-import-position @@ -35134,6 +35134,33 @@ def doInfoCIPolicies(): _showPolicies(policies, FJQC, add_warnings, no_appnames, None, None, cd, groups_ci) +# gam create policy +def doCreateCIPolicy(): + cip_write = buildGAPIObject(API.CLOUDIDENTITY_POLICY_WRITE) + policy = { + 'policyQuery': { + 'orgUnit': 'orgUnits/04j35uvn409nb5l', + # 'sortOrder': 1, + }, + 'setting': { + 'type': 'settings/detector.word_list', + 'value': { + 'displayName': 'Reindeer', + 'wordList': ['Dasher', + 'Dancer', + 'Prancer', + 'Vixen', + 'Comet', + 'Cupid', + 'Donner', + 'Blitzen', + 'Rudolph'], + } + } + } + result = callGAPI(cip_write.policies(), 'create', body=policy) + print(result) + # gam print policies [todrive *] # [filter ] [nowarnings] [noappnames] # [group ] [ou|org|orgunit ] @@ -74943,6 +74970,7 @@ MAIN_ADD_CREATE_FUNCTIONS = { Cmd.ARG_INBOUNDSSOPROFILE: doCreateInboundSSOProfile, Cmd.ARG_ORG: doCreateOrg, Cmd.ARG_PERMISSION: doCreatePermissions, + Cmd.ARG_CIPOLICY: doCreateCIPolicy, Cmd.ARG_PRINTER: doCreatePrinter, Cmd.ARG_PROJECT: doCreateProject, Cmd.ARG_RESOLDCUSTOMER: doCreateResoldCustomer,