3 ]@s,ddlmZmZmZmZGdddeZdS))NamespacedClient query_params _make_path SKIP_IN_PATHc@seZdZedddZedddZedddZeddd Zedd d Zedd d Z edddZ edddZ edddZ edddZ dS) IlmClientNcCs|jjdtdd||dS)z ``_ :arg policy: The name of the index lifecycle policy DELETE_ilmpolicy)params) transportperform_requestr)selfr r rG/tmp/pip-build-z81i1n8o/elasticsearch/elasticsearch/client/xpack/ilm.pydelete_lifecycleszIlmClient.delete_lifecyclecCs|jjdt|dd|dS)z ``_ :arg index: The name of the index to explain GETrZexplain)r )r r r)r indexr rrrexplain_lifecycleszIlmClient.explain_lifecyclecCs|jjdtdd||dS)z ``_ :arg policy: The name of the index lifecycle policy rrr )r )r r r)r r r rrr get_lifecycleszIlmClient.get_lifecyclecCs|jjdd|dS)zj ``_ rz /_ilm/status)r )r r )r r rrr get_status&szIlmClient.get_statuscCs|jjdtdd|||dS)z ``_ :arg index: The name of the index whose lifecycle step is to change :arg body: The new lifecycle step to move to POSTrmove)r body)r r r)r rrr rrr move_to_step-szIlmClient.move_to_stepcCs|jjdtdd|||dS)z ``_ :arg policy: The name of the index lifecycle policy :arg body: The lifecycle policy definition to register PUTrr )r r)r r r)r r rr rrr put_lifecycle9szIlmClient.put_lifecyclecCs|jjdt|dd|dS)z ``_ :arg index: The name of the index to remove policy on rrremove)r )r r r)r rr rrr remove_policyEszIlmClient.remove_policycCs|jjdt|dd|dS)z ``_ :arg index: The name of the indices (comma-separated) whose failed lifecycle step is to be retry rrretry)r )r r r)r rr rrrrPszIlmClient.retrycCs|jjdd|dS)ze ``_ rz /_ilm/start)r )r r )r r rrrstart\szIlmClient.startcCs|jjdd|dS)zd ``_ rz /_ilm/stop)r )r r )r r rrrstopcszIlmClient.stop)NN)NN)NN)N)NNN)NNN)NN)NN)N)N)__name__ __module__ __qualname__rrrrrrrrrrr rrrrrs(         rN)utilsrrrrrrrrrs