本文整理汇总了Python中okta.framework.ApiClient.ApiClient.delete_path方法的典型用法代码示例。如果您正苦于以下问题:Python ApiClient.delete_path方法的具体用法?Python ApiClient.delete_path怎么用?Python ApiClient.delete_path使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类okta.framework.ApiClient.ApiClient
的用法示例。
在下文中一共展示了ApiClient.delete_path方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: clear_session
# 需要导入模块: from okta.framework.ApiClient import ApiClient [as 别名]
# 或者: from okta.framework.ApiClient.ApiClient import delete_path [as 别名]
def clear_session(self, id):
"""Terminate a session
:param id: the target session id
:rtype: Session
"""
ApiClient.delete_path(self, '/{0}'.format(id))
示例2: delete_app_instance
# 需要导入模块: from okta.framework.ApiClient import ApiClient [as 别名]
# 或者: from okta.framework.ApiClient.ApiClient import delete_path [as 别名]
def delete_app_instance(self, id):
"""Delete app by target id
:param id: the target app id
:type id: str
:return: None
"""
ApiClient.delete_path(self, '/{0}'.format(id))
示例3: reset_factor
# 需要导入模块: from okta.framework.ApiClient import ApiClient [as 别名]
# 或者: from okta.framework.ApiClient.ApiClient import delete_path [as 别名]
def reset_factor(self, user_id, user_factor_id):
"""Reset an enrolled factor
:param user_id: target user id
:type user_id: str
:param user_factor_id: target factor id
:type user_factor_id: str
:rtype: None
"""
ApiClient.delete_path(self, '/{0}/factors/{1}'.format(user_id, user_factor_id))
示例4: delete_group
# 需要导入模块: from okta.framework.ApiClient import ApiClient [as 别名]
# 或者: from okta.framework.ApiClient.ApiClient import delete_path [as 别名]
def delete_group(self, gid):
"""Delete group by target id
:param gid: the target group id
:type gid: str
:return: None
"""
response = ApiClient.delete_path(self, '/{0}'.format(gid))
return Utils.deserialize(response.text, UserGroup)
示例5: delete_user
# 需要导入模块: from okta.framework.ApiClient import ApiClient [as 别名]
# 或者: from okta.framework.ApiClient.ApiClient import delete_path [as 别名]
def delete_user(self, uid):
"""Delete user by target id
:param uid: the target user id
:type uid: str
:return: None
"""
response = ApiClient.delete_path(self, '/{0}'.format(uid))
return Utils.deserialize(response.text, User)