a _b @s,ddlmZmZmZmZGdddeZdS)) SKIP_IN_PATHNamespacedClient _make_path query_paramsc@sHeZdZedddd ddZedddd ddZed d d ZdS)DanglingIndicesClientZaccept_data_lossZmaster_timeouttimeoutNcs0|tvrtd|jjdtd|||dIdHS)aL Deletes the specified dangling index :arg index_uuid: The UUID of the dangling index :arg accept_data_loss: Must be set to true in order to delete the dangling index :arg master_timeout: Specify timeout for connection to master :arg timeout: Explicit operation timeout 8Empty value passed for a required argument 'index_uuid'.DELETE _danglingparamsheadersNr ValueError transportperform_requestrselfZ index_uuidr r rR/tmp/pip-target-4jja1joz/lib/python/opensearchpy/_async/client/dangling_indices.pydelete_dangling_indexs z+DanglingIndicesClient.delete_dangling_indexcs0|tvrtd|jjdtd|||dIdHS)aL Imports the specified dangling index :arg index_uuid: The UUID of the dangling index :arg accept_data_loss: Must be set to true in order to import the dangling index :arg master_timeout: Specify timeout for connection to master :arg timeout: Explicit operation timeout rPOSTr r Nrrrrrimport_dangling_index5s z+DanglingIndicesClient.import_dangling_indexcs|jjdd||dIdHS)z0 Returns all dangling indices. GETz /_danglingr N)rr)rr r rrrlist_dangling_indicesHsz+DanglingIndicesClient.list_dangling_indices)NN)NN)NN)__name__ __module__ __qualname__rrrrrrrrrs     rN)utilsrrrrrrrrrs