def access_settings(service, groupId, settings):
 group = service.groups()
 g = group.get(groupUniqueId=groupId).execute()
 print(('\nGroup properties for group %s\n' % g['name']))
 pprint.pprint(g)
 if (not settings.keys()):
  print('\nGive access parameters to update group access permissions\n')
  return
 body = {}
 for key in settings.iterkeys():
  if (settings[key] is not None):
   body[key] = settings[key]
 g1 = group.update(groupUniqueId=groupId, body=body).execute()
 print('\nUpdated Access Permissions to the group\n')
 pprint.pprint(g1)

def access_settings ( service , groupId , settings ) : group = service . groups ( ) g = group . get ( groupUniqueId = groupId ) . execute ( ) print ( ( '\nGroup properties for group %s\n' % g [ 'name' ] ) ) pprint . pprint ( g ) if ( not settings . keys ( ) ) : print ( '\nGive access parameters to update group access permissions\n' ) return body = { } for key in settings . iterkeys ( ) : if ( settings [ key ] is not None ) : body [ key ] = settings [ key ] g1 = group . update ( groupUniqueId = groupId , body = body ) . execute ( ) print ( '\nUpdated Access Permissions to the group\n' ) pprint . pprint ( g1 )
retrieves a groups settings and updates the access permissions to it .