3 ²˜‚]§ ã@s,ddlmZmZmZmZGdd„deƒZdS)é)ÚNamespacedClientÚ query_paramsÚ _make_pathÚ SKIP_IN_PATHc@sheZdZedƒddd„ƒZeddƒddd„ƒZeddƒddd „ƒZed ƒdd d „ƒZeƒdd d„ƒZdS)Ú IngestClientZmaster_timeoutNcCs|jjdtdd|ƒ|d�S)a ``_ :arg id: Comma separated list of pipeline ids. Wildcards supported :arg master_timeout: Explicit operation timeout for connection to master node ÚGETÚ_ingestÚpipeline)Úparams)Ú transportÚperform_requestr)ÚselfÚidr ©rúD/tmp/pip-build-z81i1n8o/elasticsearch/elasticsearch/client/ingest.pyÚ get_pipelines zIngestClient.get_pipelineÚtimeoutcCs>x ||fD]}|tkr tdƒ‚q W|jjdtdd|ƒ||d�S)a: ``_ :arg id: Pipeline ID :arg body: The ingest definition :arg master_timeout: Explicit operation timeout for connection to master node :arg timeout: Explicit operation timeout z+Empty value passed for a required argument.ÚPUTrr )r Úbody)rÚ ValueErrorr r r)r rrr ÚparamrrrÚ put_pipelines  zIngestClient.put_pipelinecCs*|tkrtdƒ‚|jjdtdd|ƒ|d�S)a ``_ :arg id: Pipeline ID :arg master_timeout: Explicit operation timeout for connection to master node :arg timeout: Explicit operation timeout z0Empty value passed for a required argument 'id'.ÚDELETErr )r )rrr r r)r rr rrrÚdelete_pipeline$s zIngestClient.delete_pipelineÚverbosecCs.|tkrtdƒ‚|jjdtdd|dƒ||d�S)a$ ``_ :arg body: The simulate definition :arg id: Pipeline ID :arg verbose: Verbose mode. Display data output for each processor in executed pipeline, default False z2Empty value passed for a required argument 'body'.rrr Z _simulate)r r)rrr r r)r rrr rrrÚsimulate4s  zIngestClient.simulatecCs|jjdd|d�S)z� ``_ rz/_ingest/processor/grok)r )r r )r r rrrÚprocessor_grokGszIngestClient.processor_grok)NN)N)N)NN)N) Ú__name__Ú __module__Ú __qualname__rrrrrrrrrrrs    rN)ÚutilsrrrrrrrrrÚs