o |nh@s ddlmZGdddeZdS))SystemBackendMixinc@seZdZddZddZdS)LeadercCd}|jj|dS)zRead the high availability status and current leader instance of Vault. Supported methods: GET: /sys/leader. Produces: 200 application/json :return: The JSON response of the request. :rtype: dict z/v1/sys/leaderurl)_adaptergetselfapi_pathr I/usr/local/lib/python3.10/dist-packages/hvac/api/system_backend/leader.pyread_leader_statuss zLeader.read_leader_statuscCr)a@Force the node to give up active status. When executed against a non-active node, i.e. a standby or performance standby node, the request will be forwarded to the active node. Note that the node will sleep for ten seconds before attempting to grab the active lock again, but if no standby nodes grab the active lock in the interim, the same node may become the active node again. Requires a token with root policy or sudo capability on the path. :return: The JSON response of the request. :rtype: dict z/v1/sys/step-downr)rputr r r r step_downs zLeader.step_downN)__name__ __module__ __qualname__rrr r r r rs rN),hvac.api.system_backend.system_backend_mixinrrr r r r s