3 ²˜‚]èXã@s,ddlmZmZmZmZGdd„deƒZdS)é)ÚNamespacedClientÚ query_paramsÚ _make_pathÚ SKIP_IN_PATHc @szeZdZedddddddƒd>d d „ƒZed dddddddƒd?d d „ƒZedddddddƒd@dd„ƒZeddddddddƒdAdd„ƒZeddƒdBdd„ƒZed ddddddddddƒ dCdd„ƒZ edddddddƒdDdd„ƒZ eddddddddƒdEdd„ƒZ ed ddddddddƒ dFd d!„ƒZ ed ddddddddƒ dGd"d#„ƒZ ed ddddddƒdHd$d%„ƒZedddddddƒdId&d'„ƒZeddddddddƒdJd(d)„ƒZed dddddddƒdKd*d+„ƒZedddddddƒdLd,d-„ƒZedddddddƒdMd.d/„ƒZedddddddƒdNd0d1„ƒZedddd2dddƒdOd3d4„ƒZed5d6dddd7d8d9ddƒ dPd:d;„ƒZedddddddƒdQd`_ :arg name: A comma-separated list of alias names to return :arg format: a short version of the Accept header, e.g. json, yaml :arg h: Comma-separated list of column names to display :arg help: Return help information, default False :arg local: Return local information, do not retrieve the state from master node (default: false) :arg master_timeout: Explicit operation timeout for connection to master node :arg s: Comma-separated list of column names or column aliases to sort by :arg v: Verbose mode. Display column headers, default False ÚGETÚ_catÚaliases)Úparams)Ú transportÚperform_requestr)ÚselfÚnamer©rúA/tmp/pip-build-z81i1n8o/elasticsearch/elasticsearch/client/cat.pyrszCatClient.aliasesÚbytescCs|jjdtdd|ƒ|d�S)a, Allocation provides a snapshot of how shards have located around the cluster and the state of disk usage. ``_ :arg node_id: A comma-separated list of node IDs or names to limit the returned information :arg bytes: The unit in which to display byte values, valid choices are: 'b', 'k', 'kb', 'm', 'mb', 'g', 'gb', 't', 'tb', 'p', 'pb' :arg format: a short version of the Accept header, e.g. json, yaml :arg h: Comma-separated list of column names to display :arg help: Return help information, default False :arg local: Return local information, do not retrieve the state from master node (default: false) :arg master_timeout: Explicit operation timeout for connection to master node :arg s: Comma-separated list of column names or column aliases to sort by :arg v: Verbose mode. Display column headers, default False r rÚ allocation)r)rrr)rÚnode_idrrrrrszCatClient.allocationcCs|jjdtdd|ƒ|d�S)a} Count provides quick access to the document count of the entire cluster, or individual indices. ``_ :arg index: A comma-separated list of index names to limit the returned information :arg format: a short version of the Accept header, e.g. json, yaml :arg h: Comma-separated list of column names to display :arg help: Return help information, default False :arg local: Return local information, do not retrieve the state from master node (default: false) :arg master_timeout: Explicit operation timeout for connection to master node :arg s: Comma-separated list of column names or column aliases to sort by :arg v: Verbose mode. Display column headers, default False r rÚcount)r)rrr)rÚindexrrrrr5szCatClient.countÚtscCs|jjdd|d�S)a� health is a terse, one-line representation of the same information from :meth:`~elasticsearch.client.cluster.ClusterClient.health` API ``_ :arg format: a short version of the Accept header, e.g. json, yaml :arg h: Comma-separated list of column names to display :arg help: Return help information, default False :arg local: Return local information, do not retrieve the state from master node (default: false) :arg master_timeout: Explicit operation timeout for connection to master node :arg s: Comma-separated list of column names or column aliases to sort by :arg ts: Set to false to disable timestamping, default True :arg v: Verbose mode. Display column headers, default False r z /_cat/health)r)rr)rrrrrÚhealthMszCatClient.healthcCs|jjdd|d�S)a A simple help for the cat api. ``_ :arg help: Return help information, default False :arg s: Comma-separated list of column names or column aliases to sort by r z/_cat)r)rr)rrrrrr bs zCatClient.helpÚsizerÚpricCs|jjdtdd|ƒ|d�S)aõ The indices command provides a cross-section of each index. ``_ :arg index: A comma-separated list of index names to limit the returned information :arg bytes: The unit in which to display byte values, valid choices are: 'b', 'k', 'm', 'g' :arg format: a short version of the Accept header, e.g. json, yaml :arg h: Comma-separated list of column names to display :arg health: A health status ("green", "yellow", or "red" to filter only indices matching the specified health status, default None, valid choices are: 'green', 'yellow', 'red' :arg help: Return help information, default False :arg local: Return local information, do not retrieve the state from master node (default: false) :arg master_timeout: Explicit operation timeout for connection to master node :arg pri: Set to true to return stats only for primary shards, default False :arg s: Comma-separated list of column names or column aliases to sort by :arg v: Verbose mode. Display column headers, default False r rÚindices)r)rrr)rrrrrrr ns&zCatClient.indicescCs|jjdd|d�S)aî Displays the master's node ID, bound IP address, and node name. ``_ :arg format: a short version of the Accept header, e.g. json, yaml :arg h: Comma-separated list of column names to display :arg help: Return help information, default False :arg local: Return local information, do not retrieve the state from master node (default: false) :arg master_timeout: Explicit operation timeout for connection to master node :arg s: Comma-separated list of column names or column aliases to sort by :arg v: Verbose mode. Display column headers, default False r z /_cat/master)r)rr)rrrrrÚmaster˜szCatClient.masterZfull_idcCs|jjdd|d�S)aG The nodes command shows the cluster topology. ``_ :arg format: a short version of the Accept header, e.g. json, yaml :arg full_id: Return the full node ID instead of the shortened version (default: false) :arg h: Comma-separated list of column names to display :arg help: Return help information, default False :arg local: Return local information, do not retrieve the state from master node (default: false) :arg master_timeout: Explicit operation timeout for connection to master node :arg s: Comma-separated list of column names or column aliases to sort by :arg v: Verbose mode. Display column headers, default False r z /_cat/nodes)r)rr)rrrrrÚnodes«szCatClient.nodesÚtimecCs|jjdtdd|ƒ|d�S)ac recovery is a view of shard replication. ``_ :arg index: A comma-separated list of index names to limit the returned information :arg bytes: The unit in which to display byte values, valid choices are: 'b', 'k', 'kb', 'm', 'mb', 'g', 'gb', 't', 'tb', 'p', 'pb' :arg format: a short version of the Accept header, e.g. json, yaml :arg h: Comma-separated list of column names to display :arg help: Return help information, default False :arg master_timeout: Explicit operation timeout for connection to master node :arg s: Comma-separated list of column names or column aliases to sort by :arg v: Verbose mode. Display column headers, default False r rÚrecovery)r)rrr)rrrrrrr$ÀszCatClient.recoverycCs|jjdtdd|ƒ|d�S)aú The shards command is the detailed view of what nodes contain which shards. ``_ :arg index: A comma-separated list of index names to limit the returned information :arg bytes: The unit in which to display byte values, valid choices are: 'b', 'k', 'kb', 'm', 'mb', 'g', 'gb', 't', 'tb', 'p', 'pb' :arg format: a short version of the Accept header, e.g. json, yaml :arg h: Comma-separated list of column names to display :arg help: Return help information, default False :arg local: Return local information, do not retrieve the state from master node (default: false) :arg master_timeout: Explicit operation timeout for connection to master node :arg s: Comma-separated list of column names or column aliases to sort by :arg v: Verbose mode. Display column headers, default False r rÚshards)r)rrr)rrrrrrr%ÙszCatClient.shardscCs|jjdtdd|ƒ|d�S)a  The segments command is the detailed view of Lucene segments per index. ``_ :arg index: A comma-separated list of index names to limit the returned information :arg bytes: The unit in which to display byte values, valid choices are: 'b', 'k', 'kb', 'm', 'mb', 'g', 'gb', 't', 'tb', 'p', 'pb' :arg format: a short version of the Accept header, e.g. json, yaml :arg h: Comma-separated list of column names to display :arg help: Return help information, default False :arg s: Comma-separated list of column names or column aliases to sort by :arg v: Verbose mode. Display column headers, default False r rÚsegments)r)rrr)rrrrrrr&ôszCatClient.segmentscCs|jjdd|d�S)a^ pending_tasks provides the same information as the :meth:`~elasticsearch.client.cluster.ClusterClient.pending_tasks` API in a convenient tabular format. ``_ :arg format: a short version of the Accept header, e.g. json, yaml :arg h: Comma-separated list of column names to display :arg help: Return help information, default False :arg local: Return local information, do not retrieve the state from master node (default: false) :arg master_timeout: Explicit operation timeout for connection to master node :arg s: Comma-separated list of column names or column aliases to sort by :arg v: Verbose mode. Display column headers, default False r z/_cat/pending_tasks)r)rr)rrrrrÚ pending_tasks szCatClient.pending_taskscCs|jjdtdd|ƒ|d�S)aÖ Get information about thread pools. ``_ :arg thread_pool_patterns: A comma-separated list of regular-expressions to filter the thread pools in the output :arg format: a short version of the Accept header, e.g. json, yaml :arg h: Comma-separated list of column names to display :arg help: Return help information, default False :arg local: Return local information, do not retrieve the state from master node (default: false) :arg master_timeout: Explicit operation timeout for connection to master node :arg s: Comma-separated list of column names or column aliases to sort by :arg size: The multiplier in which to display values, valid choices are: '', 'k', 'm', 'g', 't', 'p' :arg v: Verbose mode. Display column headers, default False r rÚ thread_pool)r)rrr)rZthread_pool_patternsrrrrr( s zCatClient.thread_poolcCs|jjdtdd|ƒ|d�S)að Shows information about currently loaded fielddata on a per-node basis. ``_ :arg fields: A comma-separated list of fields to return the fielddata size :arg bytes: The unit in which to display byte values, valid choices are: 'b', 'k', 'kb', 'm', 'mb', 'g', 'gb', 't', 'tb', 'p', 'pb' :arg format: a short version of the Accept header, e.g. json, yaml :arg h: Comma-separated list of column names to display :arg help: Return help information, default False :arg local: Return local information, do not retrieve the state from master node (default: false) :arg master_timeout: Explicit operation timeout for connection to master node :arg s: Comma-separated list of column names or column aliases to sort by :arg v: Verbose mode. Display column headers, default False r rÚ fielddata)r)rrr)rÚfieldsrrrrr);szCatClient.fielddatacCs|jjdd|d�S)a¨ ``_ :arg format: a short version of the Accept header, e.g. json, yaml :arg h: Comma-separated list of column names to display :arg help: Return help information, default False :arg local: Return local information, do not retrieve the state from master node (default: false) :arg master_timeout: Explicit operation timeout for connection to master node :arg s: Comma-separated list of column names or column aliases to sort by :arg v: Verbose mode. Display column headers, default False r z /_cat/plugins)r)rr)rrrrrÚpluginsTszCatClient.pluginscCs|jjdd|d�S)aª ``_ :arg format: a short version of the Accept header, e.g. json, yaml :arg h: Comma-separated list of column names to display :arg help: Return help information, default False :arg local: Return local information, do not retrieve the state from master node (default: false) :arg master_timeout: Explicit operation timeout for connection to master node :arg s: Comma-separated list of column names or column aliases to sort by :arg v: Verbose mode. Display column headers, default False r z/_cat/nodeattrs)r)rr)rrrrrÚ nodeattrsgszCatClient.nodeattrscCs|jjdd|d�S)a« ``_ :arg format: a short version of the Accept header, e.g. json, yaml :arg h: Comma-separated list of column names to display :arg help: Return help information, default False :arg local: Return local information, do not retrieve the state from master node, default False :arg master_timeout: Explicit operation timeout for connection to master node :arg s: Comma-separated list of column names or column aliases to sort by :arg v: Verbose mode. Display column headers, default False r z/_cat/repositories)r)rr)rrrrrÚ repositorieszszCatClient.repositoriesZignore_unavailablecCs*|tkrtdƒ‚|jjdtdd|ƒ|d�S)a ``_ :arg repository: Name of repository from which to fetch the snapshot information :arg format: a short version of the Accept header, e.g. json, yaml :arg h: Comma-separated list of column names to display :arg help: Return help information, default False :arg ignore_unavailable: Set to true to ignore unavailable snapshots, default False :arg master_timeout: Explicit operation timeout for connection to master node :arg s: Comma-separated list of column names or column aliases to sort by :arg v: Verbose mode. Display column headers, default False z8Empty value passed for a required argument 'repository'.r rÚ snapshots)r)rÚ ValueErrorrrr)rÚ repositoryrrrrr.�szCatClient.snapshotsÚactionsZdetailedr"rZparent_task_idcCs|jjdd|d�S)a ``_ :arg actions: A comma-separated list of actions that should be returned. Leave empty to return all. :arg detailed: Return detailed task information (default: false) :arg format: a short version of the Accept header, e.g. json, yaml :arg h: Comma-separated list of column names to display :arg help: Return help information, default False :arg nodes: A comma-separated list of node IDs or names to limit the returned information; use `_local` to return information from the node you're connecting to, leave empty to get information from all nodes (used for older version of Elasticsearch) :arg node_id: A comma-separated list of node IDs or names to limit the returned information; use `_local` to return information from the node you're connecting to, leave empty to get information from all nodes :arg parent_task_id: Return tasks with specified parent task id. Set to -1 to return all. :arg s: Comma-separated list of column names or column aliases to sort by :arg v: Verbose mode. Display column headers, default False r z /_cat/tasks)r)rr)rrrrrÚtasksªs%zCatClient.taskscCs|jjdtdd|ƒ|d�S)aî ``_ :arg name: A pattern that returned template names must match :arg format: a short version of the Accept header, e.g. json, yaml :arg h: Comma-separated list of column names to display :arg help: Return help information, default False :arg local: Return local information, do not retrieve the state from master node (default: false) :arg master_timeout: Explicit operation timeout for connection to master node :arg s: Comma-separated list of column names or column aliases to sort by :arg v: Verbose mode. Display column headers, default False r rÚ templates)r)rrr)rrrrrrr3ÑszCatClient.templates)NN)NN)NN)N)N)NN)N)N)NN)NN)NN)N)NN)NN)N)N)N)N)N)NN)Ú__name__Ú __module__Ú __qualname__rrrrrr r r!r"r$r%r&r'r(r)r+r,r-r.r2r3rrrrrs€                   rN)ÚutilsrrrrrrrrrÚs