MCPcopy Create free account
hub / github.com/Keeper-Security/Commander / execute

Method execute

keepercommander/commands/scim.py:286–301  ·  view source on GitHub ↗
(self, params, target=None, **kwargs)

Source from the content-addressed store, hash-verified

284 return scim_delete_parser
285
286 def execute(self, params, target=None, **kwargs):
287 scim = find_scim(params, target)
288 answer = 'y' if kwargs.get('force') else \
289 user_choice(bcolors.FAIL + bcolors.BOLD + '\nALERT!\n' + bcolors.ENDC +
290 'You are about to delete SCIM endpoint {0}'.format(scim['scim_id']) +
291 '\n\nDo you want to proceed with deletion?', 'yn', 'n')
292 if answer.lower() != 'y':
293 return
294
295 rq = {
296 'command': 'scim_delete',
297 'scim_id': scim['scim_id'],
298 }
299 api.communicate(params, rq)
300 api.query_enterprise(params)
301 logging.info('SCIM endpoint \"%d\" at node \"%d\" deleted', scim['scim_id'], scim['node_id'])
302
303
304def get_scim_url(params, node_id): # type: (KeeperParams, int) -> any

Callers

nothing calls this directly

Calls 7

find_scimFunction · 0.85
user_choiceFunction · 0.85
formatMethod · 0.80
communicateMethod · 0.80
getMethod · 0.45
query_enterpriseMethod · 0.45
infoMethod · 0.45

Tested by

no test coverage detected