From 2b284f4373e7d5c80b0a6feb6e1a8aa070658b02 Mon Sep 17 00:00:00 2001 From: Webster Mudge Date: Thu, 12 Sep 2024 12:45:03 -0400 Subject: [PATCH] Update for the WORKLOAD_IAM_SYNC entitlement and automated user synchronization Signed-off-by: Webster Mudge --- src/cdpy/environments.py | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/src/cdpy/environments.py b/src/cdpy/environments.py index 415879c..f5cd2d0 100644 --- a/src/cdpy/environments.py +++ b/src/cdpy/environments.py @@ -216,13 +216,19 @@ def sync_users(self, environments=None): self.sdk.throw_error(resp) return resp - def get_sync_status(self, operation): + def get_sync_status(self, identifier): return self.sdk.call( svc='environments', func='sync_status', squelch=[ Squelch(field='error_code', value='NOT_FOUND', default=None, - warning='No User Sync Operation found matching %s' % operation) + warning='No User Sync Operation found matching %s' % identifier) ], - operationId=operation + operationId=identifier + ) + + def get_automated_sync_environment_status(self, environment): + return self.sdk.call( + svc='environments', func='get_automated_sync_environment_status', + environmentName=environment ) def get_keytab(self, actor, environment):