From 3948a414b5a0feda7540399eccab54d561d0a5ae Mon Sep 17 00:00:00 2001 From: Ross Scroggs Date: Wed, 24 Aug 2022 12:24:38 -0700 Subject: [PATCH] Back to client access for user invitations (#1553) --- src/gam/gapi/cloudidentity/userinvitations.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/gam/gapi/cloudidentity/userinvitations.py b/src/gam/gapi/cloudidentity/userinvitations.py index 51327f03..804c0aa3 100644 --- a/src/gam/gapi/cloudidentity/userinvitations.py +++ b/src/gam/gapi/cloudidentity/userinvitations.py @@ -25,7 +25,7 @@ def _reduce_name(name): def is_invitable_user(email): '''return email isInvitableUser''' - svc = gapi_cloudidentity.build_dwd('cloudidentity') + svc = gapi_cloudidentity.build('cloudidentity') customer = _get_customerid() encoded_email = quote_plus(email) name = f'{customer}/userinvitations/{encoded_email}' @@ -35,7 +35,7 @@ def is_invitable_user(email): def _generic_action(action): '''generic function to call actionable APIs''' - svc = gapi_cloudidentity.build_dwd('cloudidentity') + svc = gapi_cloudidentity.build('cloudidentity') customer = _get_customerid() email = sys.argv[3].lower() encoded_email = quote_plus(email) @@ -55,7 +55,7 @@ def _generic_action(action): def _generic_get(get_type): '''generic function to call read data APIs''' - svc = gapi_cloudidentity.build_dwd('cloudidentity') + svc = gapi_cloudidentity.build('cloudidentity') customer = _get_customerid() email = sys.argv[3].lower() encoded_email = quote_plus(email) @@ -75,7 +75,7 @@ def bulk_is_invitable(emails): if response.get('isInvitableUser'): rows.append({'invitableUsers': request_id}) - svc = gapi_cloudidentity.build_dwd('cloudidentity') + svc = gapi_cloudidentity.build('cloudidentity') customer = _get_customerid() todrive = False #batch_size = 1000 @@ -139,7 +139,7 @@ USERINVITATION_STATE_CHOICES_MAP = { def print_(): '''gam print userinvitations''' - svc = gapi_cloudidentity.build_dwd('cloudidentity') + svc = gapi_cloudidentity.build('cloudidentity') customer = _get_customerid() todrive = False titles = ['name', 'state', 'updateTime']