o
    gZhD                    @   sL   d dl Zd dlmZmZ ddlmZ ddlmZm	Z	m
Z
 G dd deZdS )    N)ObjectApiResponseTextApiResponse   )NamespacedClient)SKIP_IN_PATH_quote_rewrite_parametersc                *   @   s  e Zd Ze dddddddddddddddejejeeje f  deje	 dejejejejdef  ejdef f  dejejeeje f  deje d	ejejeeje f  d
eje	 deje	 deje	 dejejddef  deje	 dejejeeje f  deje	 deje
ej ef fddZe dddddddddddddddejejeeje f  dejejdef  deje	 dejejeeje f  deje d	ejejeeje f  d
eje	 deje	 deje	 dejejddef  deje	 dejejeeje f  deje	 deje
ej ef fddZe ddddddddddddddeje deje	 dejejeeje f  deje d	ejejeeje f  d
eje	 deje	 deje	 dejejddef  deje	 dejejeeje f  deje	 deje
ej ef fddZe dddddddddddddd ejejeeje f  deje	 dejejeeje f  deje d	ejejeeje f  d
eje	 deje	 deje	 dejejddef  deje	 dejejeeje f  deje	 deje
ej ef fd!d"Ze dddddddddddddd#d$ejejeeje f  dejejdef  deje	 dejejeeje f  deje d	ejejeeje f  d
eje	 deje	 deje	 dejejddef  deje	 dejejeeje f  deje	 deje
ej ef fd%d&Ze dddddddddddddd'deje	 dejejeeje f  deje d	ejejeeje f  d
eje	 deje	 deje	 dejejddef  deje	 dejejeeje f  d(ejejd)ef  d*eje	 deje	 deje
ej ef fd+d,Ze dddddddddddd-deje	 dejejeeje f  deje d	ejejeeje f  d
eje	 deje	 deje	 dejejddef  deje	 dejejeeje f  deje	 defd.d/Ze ddddddddddddddddddd0d ejejeeje f  dejejdef  deje	 dejejejejdef  ejdef f  dejejeeje f  deje d	ejejeeje f  d1ejejd2ef  d
eje	 deje	 d3eje	 deje	 dejejddef  deje	 d4eje	 dejejeeje f  d(ejejd)ef  deje	 deje
ej ef f&d5d6Ze dddddddddddd-deje	 dejejeeje f  deje d	ejejeeje f  d
eje	 deje	 deje	 dejejddef  deje	 dejejeeje f  deje	 deje
ej ef fd7d8Ze dddddddddddddddd9d:eje d;eje	 dejejdef  deje	 dejejeeje f  deje d	ejejejejd<ef  ejd<ef f  d
eje	 deje	 deje	 dejejddef  deje	 dejejejejd<ef  ejd<ef f  d(ejejddef  deje	 deje
ej ef f d=d>Ze ddddddddddddddd?d@eje d;eje	 deje	 dejejeeje f  deje d	ejejejejdAef  ejdAef f  d
eje	 deje	 deje	 dejejddef  deje	 dejejejejdAef  ejdAef f  d(ejejd)ef  deje	 deje
ej ef fdBdCZe ddddddddddddddddDdEeje d;eje	 dejejdef  deje	 dejejeeje f  deje d	ejejejejdFef  ejdFef f  d
eje	 deje	 deje	 dejejddef  deje	 dejejejejdFef  ejdFef f  d(ejejd)ef  deje	 deje
ej ef f dGdHZedIdJidKdddddddddddddddddLdMeje d;eje	 dejejdef  deje	 dejejeeje f  deje dJeje d	ejejejejdNef  ejdNef f  d
eje	 deje	 deje	 dejejddef  deje	 dejejejejdNef  ejdNef f  dOeje deje	 deje
ej ef f"dPdQZe dddddddddddd-deje	 dejejeeje f  deje d	ejejeeje f  d
eje	 deje	 deje	 dejejddef  deje	 dejejeeje f  deje	 deje
ej ef fdRdSZe dddddddddddddddTdejejdef  deje	 dejejeeje f  deje dUejeje	ef  d	ejejeeje f  d
eje	 deje	 d3eje	 deje	 dejejddef  deje	 dejejeeje f  deje	 deje
ej ef fdVdWZe dddddddddddd-deje	 dejejeeje f  deje d	ejejeeje f  d
eje	 deje	 deje	 dejejddef  deje	 dejejeeje f  deje	 deje
ej ef fdXdYZe dddddddddddd-deje	 dejejeeje f  deje d	ejejeeje f  d
eje	 deje	 deje	 dejejddef  deje	 dejejeeje f  deje	 deje
ej ef fdZd[Ze dddddddddddddddd\d ejejeeje f  d]eje	 dejejdef  d^eje	 deje	 dejejeeje f  deje d	ejejeeje f  d
eje	 deje	 deje	 dejejddef  deje	 dejejeeje f  deje	 deje
ej ef f d_d`Ze dddddddddddd-deje	 dejejeeje f  deje d	ejejeeje f  d
eje	 deje	 deje	 dejejddef  deje	 dejejeeje f  deje	 deje
ej ef fdadbZ e ddddddddddddddcd ejejeeje f  dejejdef  deje	 dejejeeje f  deje d	ejejeeje f  d
eje	 deje	 deje	 dejejddef  deje	 dejejeeje f  deje	 deje
ej ef fdddeZ!e ddddddddddddddcd ejejeeje f  dejejdef  deje	 dejejeeje f  deje d	ejejeeje f  d
eje	 deje	 deje	 dejejddef  deje	 dejejeeje f  deje	 deje
ej ef fdfdgZ"e ddddddddddddddhdiejejeeje f  deje	 dejejeeje f  deje d	ejejeeje f  d
eje	 deje	 djeje	 deje	 dejejddef  deje	 dejejeeje f  deje	 deje
ej ef fdkdlZ#e ddddddddddddddddmdnejeje  d^eje	 deje	 dejejeeje f  deje d	ejejeeje f  d
eje	 deje	 deje	 dejejddef  dejeje  doeje deje	 dejejeeje f  deje	 deje
ej ef f dpdqZ$e ddddddddddddddeje deje	 dejejeeje f  deje d	ejejeeje f  d
eje	 deje	 deje	 dejejddef  deje	 dejejeeje f  deje	 deje
ej ef fdrdsZ%e ddddddddddddddtduejejeeje f  deje	 dejejeeje f  deje d	ejejeeje f  d
eje	 deje	 deje	 dejejddef  deje	 dejejeeje f  d(ejejd)ef  deje	 deje
ej ef fdvdwZ&edIdJidKdddddddddddddddddxdyeje d;eje	 deje	 dejejeeje f  deje dJeje d	ejejejejdzef  ejdzef f  d
eje	 deje	 deje	 dejejddef  deje	 dejejejejdzef  ejdzef f  dOeje d(ejejd)ef  deje	 deje
ej ef f"d{d|Z'dS )}	CatClientN)nameerror_traceexpand_wildcardsfilter_pathformathhelphumanlocalmaster_timeoutprettysvr
   r   r   z4t.Literal['all', 'closed', 'hidden', 'none', 'open']r   r   r   r   r   r   r   zt.Literal[-1]zt.Literal[0]r   r   r   returnc                C      |t vrdt| }nd}i }|dur||d< |dur ||d< |dur(||d< |dur0||d< |dur8||d< |dur@||d	< |durH||d
< |	durP|	|d< |
durX|
|d< |dur`||d< |durh||d< |durp||d< ddi}| jd|||dS )aL  
        Shows information about currently configured aliases to indices including filter
        and routing infos.

        `<https://www.elastic.co/guide/en/elasticsearch/reference/8.11/cat-alias.html>`_

        :param name: A comma-separated list of aliases to retrieve. Supports wildcards
            (`*`). To retrieve all aliases, omit this parameter or use `*` or `_all`.
        :param expand_wildcards: Whether to expand wildcard expression to concrete indices
            that are open, closed or both.
        :param format: Specifies the format to return the columnar data in, can be set
            to `text`, `json`, `cbor`, `yaml`, or `smile`.
        :param h: List of columns to appear in the response. Supports simple wildcards.
        :param help: When set to `true` will output available columns. This option can't
            be combined with any other query string option.
        :param local: If `true`, the request computes the list of selected nodes from
            the local cluster state. If `false` the list of selected nodes are computed
            from the cluster state of the master node. In both cases the coordinating
            node will send requests for further information to each selected node.
        :param master_timeout: Period to wait for a connection to the master node.
        :param s: List of columns that determine how the table should be sorted. Sorting
            defaults to ascending and can be changed by setting `:asc` or `:desc` as
            a suffix to the column name.
        :param v: When set to `true` will enable verbose output.
        z/_cat/aliases/z/_cat/aliasesNr   r   r   r   r   r   r   r   r   r   r   r   accepttext/plain,application/jsonGETparamsheadersr   r   perform_request)selfr
   r   r   r   r   r   r   r   r   r   r   r   r   _CatClient__path_CatClient__query_CatClient__headers r%   U/var/www/html/lang_env/lib/python3.10/site-packages/elasticsearch/_sync/client/cat.pyaliases   s@   4zCatClient.aliases)node_idbytesr   r   r   r   r   r   r   r   r   r   r   r(   r)   z,t.Literal['b', 'gb', 'kb', 'mb', 'pb', 'tb']c                C   r   )a  
        Provides a snapshot of how many shards are allocated to each data node and how
        much disk space they are using.

        `<https://www.elastic.co/guide/en/elasticsearch/reference/8.11/cat-allocation.html>`_

        :param node_id: Comma-separated list of node identifiers or names used to limit
            the returned information.
        :param bytes: The unit used to display byte values.
        :param format: Specifies the format to return the columnar data in, can be set
            to `text`, `json`, `cbor`, `yaml`, or `smile`.
        :param h: List of columns to appear in the response. Supports simple wildcards.
        :param help: When set to `true` will output available columns. This option can't
            be combined with any other query string option.
        :param local: If `true`, the request computes the list of selected nodes from
            the local cluster state. If `false` the list of selected nodes are computed
            from the cluster state of the master node. In both cases the coordinating
            node will send requests for further information to each selected node.
        :param master_timeout: Period to wait for a connection to the master node.
        :param s: List of columns that determine how the table should be sorted. Sorting
            defaults to ascending and can be changed by setting `:asc` or `:desc` as
            a suffix to the column name.
        :param v: When set to `true` will enable verbose output.
        z/_cat/allocation/z/_cat/allocationNr)   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   )r!   r(   r)   r   r   r   r   r   r   r   r   r   r   r   r"   r#   r$   r%   r%   r&   
allocationq   @   .zCatClient.allocation)r
   r   r   r   r   r   r   r   r   r   r   r   c                C      |t vrdt| }nd}i }|dur||d< |dur ||d< |dur(||d< |dur0||d< |dur8||d< |dur@||d	< |durH||d
< |	durP|	|d< |
durX|
|d< |dur`||d< |durh||d< ddi}| jd|||dS )a  
        Returns information about existing component_templates templates.

        `<https://www.elastic.co/guide/en/elasticsearch/reference/8.11/cat-component-templates.html>`_

        :param name: The name of the component template. Accepts wildcard expressions.
            If omitted, all component templates are returned.
        :param format: Specifies the format to return the columnar data in, can be set
            to `text`, `json`, `cbor`, `yaml`, or `smile`.
        :param h: List of columns to appear in the response. Supports simple wildcards.
        :param help: When set to `true` will output available columns. This option can't
            be combined with any other query string option.
        :param local: If `true`, the request computes the list of selected nodes from
            the local cluster state. If `false` the list of selected nodes are computed
            from the cluster state of the master node. In both cases the coordinating
            node will send requests for further information to each selected node.
        :param master_timeout: Period to wait for a connection to the master node.
        :param s: List of columns that determine how the table should be sorted. Sorting
            defaults to ascending and can be changed by setting `:asc` or `:desc` as
            a suffix to the column name.
        :param v: When set to `true` will enable verbose output.
        z/_cat/component_templates/z/_cat/component_templatesNr   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r!   r
   r   r   r   r   r   r   r   r   r   r   r   r"   r#   r$   r%   r%   r&   component_templates   <   )zCatClient.component_templates)indexr   r   r   r   r   r   r   r   r   r   r   r0   c                C   r,   )a  
        Provides quick access to the document count of the entire cluster, or individual
        indices.

        `<https://www.elastic.co/guide/en/elasticsearch/reference/8.11/cat-count.html>`_

        :param index: Comma-separated list of data streams, indices, and aliases used
            to limit the request. Supports wildcards (`*`). To target all data streams
            and indices, omit this parameter or use `*` or `_all`.
        :param format: Specifies the format to return the columnar data in, can be set
            to `text`, `json`, `cbor`, `yaml`, or `smile`.
        :param h: List of columns to appear in the response. Supports simple wildcards.
        :param help: When set to `true` will output available columns. This option can't
            be combined with any other query string option.
        :param local: If `true`, the request computes the list of selected nodes from
            the local cluster state. If `false` the list of selected nodes are computed
            from the cluster state of the master node. In both cases the coordinating
            node will send requests for further information to each selected node.
        :param master_timeout: Period to wait for a connection to the master node.
        :param s: List of columns that determine how the table should be sorted. Sorting
            defaults to ascending and can be changed by setting `:asc` or `:desc` as
            a suffix to the column name.
        :param v: When set to `true` will enable verbose output.
        z/_cat/count/z/_cat/countNr   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   )r!   r0   r   r   r   r   r   r   r   r   r   r   r   r"   r#   r$   r%   r%   r&   count
  s<   +zCatClient.count)fieldsr)   r   r   r   r   r   r   r   r   r   r   r   r2   c                C   r   )a  
        Shows how much heap memory is currently being used by fielddata on every data
        node in the cluster.

        `<https://www.elastic.co/guide/en/elasticsearch/reference/8.11/cat-fielddata.html>`_

        :param fields: Comma-separated list of fields used to limit returned information.
            To retrieve all fields, omit this parameter.
        :param bytes: The unit used to display byte values.
        :param format: Specifies the format to return the columnar data in, can be set
            to `text`, `json`, `cbor`, `yaml`, or `smile`.
        :param h: List of columns to appear in the response. Supports simple wildcards.
        :param help: When set to `true` will output available columns. This option can't
            be combined with any other query string option.
        :param local: If `true`, the request computes the list of selected nodes from
            the local cluster state. If `false` the list of selected nodes are computed
            from the cluster state of the master node. In both cases the coordinating
            node will send requests for further information to each selected node.
        :param master_timeout: Period to wait for a connection to the master node.
        :param s: List of columns that determine how the table should be sorted. Sorting
            defaults to ascending and can be changed by setting `:asc` or `:desc` as
            a suffix to the column name.
        :param v: When set to `true` will enable verbose output.
        z/_cat/fielddata/z/_cat/fielddataNr)   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   )r!   r2   r)   r   r   r   r   r   r   r   r   r   r   r   r"   r#   r$   r%   r%   r&   	fielddataU  r+   zCatClient.fielddata)r   r   r   r   r   r   r   r   r   r   timetsr   r4   z6t.Literal['d', 'h', 'm', 'micros', 'ms', 'nanos', 's']r5   c                C   s   d}i }|dur||d< |dur||d< |dur||d< |dur$||d< |dur,||d< |dur4||d< |dur<||d	< |durD||d
< |	durL|	|d< |
durT|
|d< |dur\||d< |durd||d< |durl||d< ddi}| j d|||dS )ak  
        Returns a concise representation of the cluster health.

        `<https://www.elastic.co/guide/en/elasticsearch/reference/8.11/cat-health.html>`_

        :param format: Specifies the format to return the columnar data in, can be set
            to `text`, `json`, `cbor`, `yaml`, or `smile`.
        :param h: List of columns to appear in the response. Supports simple wildcards.
        :param help: When set to `true` will output available columns. This option can't
            be combined with any other query string option.
        :param local: If `true`, the request computes the list of selected nodes from
            the local cluster state. If `false` the list of selected nodes are computed
            from the cluster state of the master node. In both cases the coordinating
            node will send requests for further information to each selected node.
        :param master_timeout: Period to wait for a connection to the master node.
        :param s: List of columns that determine how the table should be sorted. Sorting
            defaults to ascending and can be changed by setting `:asc` or `:desc` as
            a suffix to the column name.
        :param time: The unit used to display time values.
        :param ts: If true, returns `HH:MM:SS` and Unix epoch timestamps.
        :param v: When set to `true` will enable verbose output.
        z/_cat/healthNr   r   r   r   r   r   r   r   r   r   r4   r5   r   r   r   r   r   r    )r!   r   r   r   r   r   r   r   r   r   r   r4   r5   r   r"   r#   r$   r%   r%   r&   health  s@   ,zCatClient.health)r   r   r   r   r   r   r   r   r   r   r   c                C      d}i }|dur||d< |dur||d< |dur||d< |dur$||d< |dur,||d< |dur4||d< |dur<||d	< |durD||d
< |	durL|	|d< |
durT|
|d< |dur\||d< ddi}| j d|||dS )a  
        Returns help for the Cat APIs.

        `<https://www.elastic.co/guide/en/elasticsearch/reference/8.11/cat.html>`_

        :param format: Specifies the format to return the columnar data in, can be set
            to `text`, `json`, `cbor`, `yaml`, or `smile`.
        :param h: List of columns to appear in the response. Supports simple wildcards.
        :param help: When set to `true` will output available columns. This option can't
            be combined with any other query string option.
        :param local: If `true`, the request computes the list of selected nodes from
            the local cluster state. If `false` the list of selected nodes are computed
            from the cluster state of the master node. In both cases the coordinating
            node will send requests for further information to each selected node.
        :param master_timeout: Period to wait for a connection to the master node.
        :param s: List of columns that determine how the table should be sorted. Sorting
            defaults to ascending and can be changed by setting `:asc` or `:desc` as
            a suffix to the column name.
        :param v: When set to `true` will enable verbose output.
        z/_catNr   r   r   r   r   r   r   r   r   r   r   r   z
text/plainr   r   r6   r!   r   r   r   r   r   r   r   r   r   r   r   r"   r#   r$   r%   r%   r&   r     8   &zCatClient.help)r0   r)   r   r   r   r   r   r7   r   r   include_unloaded_segmentsr   r   r   prir   r4   r   r7   z#t.Literal['green', 'red', 'yellow']r;   r<   c                C   sJ  |t vrdt| }nd}i }|dur||d< |dur ||d< |dur(||d< |dur0||d< |dur8||d< |dur@||d	< |durH||d
< |	durP|	|d< |
durX|
|d< |dur`||d< |durh||d< |durp||d< |durx||d< |dur||d< |dur||d< |dur||d< |dur||d< ddi}| jd|||dS )aV  
        Returns information about indices: number of primaries and replicas, document
        counts, disk size, ...

        `<https://www.elastic.co/guide/en/elasticsearch/reference/8.11/cat-indices.html>`_

        :param index: Comma-separated list of data streams, indices, and aliases used
            to limit the request. Supports wildcards (`*`). To target all data streams
            and indices, omit this parameter or use `*` or `_all`.
        :param bytes: The unit used to display byte values.
        :param expand_wildcards: The type of index that wildcard patterns can match.
        :param format: Specifies the format to return the columnar data in, can be set
            to `text`, `json`, `cbor`, `yaml`, or `smile`.
        :param h: List of columns to appear in the response. Supports simple wildcards.
        :param health: The health status used to limit returned indices. By default,
            the response includes indices of any health status.
        :param help: When set to `true` will output available columns. This option can't
            be combined with any other query string option.
        :param include_unloaded_segments: If true, the response includes information
            from segments that are not loaded into memory.
        :param local: If `true`, the request computes the list of selected nodes from
            the local cluster state. If `false` the list of selected nodes are computed
            from the cluster state of the master node. In both cases the coordinating
            node will send requests for further information to each selected node.
        :param master_timeout: Period to wait for a connection to the master node.
        :param pri: If true, the response only includes information from primary shards.
        :param s: List of columns that determine how the table should be sorted. Sorting
            defaults to ascending and can be changed by setting `:asc` or `:desc` as
            a suffix to the column name.
        :param time: The unit used to display time values.
        :param v: When set to `true` will enable verbose output.
        z/_cat/indices/z/_cat/indicesNr)   r   r   r   r   r   r7   r   r   r;   r   r   r   r<   r   r4   r   r   r   r   r   r   )r!   r0   r)   r   r   r   r   r   r7   r   r   r;   r   r   r   r<   r   r4   r   r"   r#   r$   r%   r%   r&   indices5  sT   DzCatClient.indicesc                C   r8   )a  
        Returns information about the master node.

        `<https://www.elastic.co/guide/en/elasticsearch/reference/8.11/cat-master.html>`_

        :param format: Specifies the format to return the columnar data in, can be set
            to `text`, `json`, `cbor`, `yaml`, or `smile`.
        :param h: List of columns to appear in the response. Supports simple wildcards.
        :param help: When set to `true` will output available columns. This option can't
            be combined with any other query string option.
        :param local: If `true`, the request computes the list of selected nodes from
            the local cluster state. If `false` the list of selected nodes are computed
            from the cluster state of the master node. In both cases the coordinating
            node will send requests for further information to each selected node.
        :param master_timeout: Period to wait for a connection to the master node.
        :param s: List of columns that determine how the table should be sorted. Sorting
            defaults to ascending and can be changed by setting `:asc` or `:desc` as
            a suffix to the column name.
        :param v: When set to `true` will enable verbose output.
        z/_cat/masterNr   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r6   r9   r%   r%   r&   master  r:   zCatClient.master)idallow_no_matchr)   r   r   r   r   r   r   r   r   r   r   r4   r   r?   r@   zt.Literal['assignment_explanation', 'create_time', 'description', 'dest_index', 'failure_reason', 'id', 'model_memory_limit', 'node.address', 'node.ephemeral_id', 'node.id', 'node.name', 'progress', 'source_index', 'state', 'type', 'version']c                C     |t vrdt| }nd}i }|dur||d< |dur ||d< |dur(||d< |dur0||d< |dur8||d< |dur@||d	< |durH||d
< |	durP|	|d< |
durX|
|d< |dur`||d< |durh||d< |durp||d< |durx||d< |dur||d< ddi}| jd|||dS )a  
        Gets configuration and usage information about data frame analytics jobs.

        `<https://www.elastic.co/guide/en/elasticsearch/reference/8.11/cat-dfanalytics.html>`_

        :param id: The ID of the data frame analytics to fetch
        :param allow_no_match: Whether to ignore if a wildcard expression matches no
            configs. (This includes `_all` string or when no configs have been specified)
        :param bytes: The unit in which to display byte values
        :param format: Specifies the format to return the columnar data in, can be set
            to `text`, `json`, `cbor`, `yaml`, or `smile`.
        :param h: Comma-separated list of column names to display.
        :param help: When set to `true` will output available columns. This option can't
            be combined with any other query string option.
        :param local: If `true`, the request computes the list of selected nodes from
            the local cluster state. If `false` the list of selected nodes are computed
            from the cluster state of the master node. In both cases the coordinating
            node will send requests for further information to each selected node.
        :param master_timeout: Period to wait for a connection to the master node.
        :param s: Comma-separated list of column names or column aliases used to sort
            the response.
        :param time: Unit used to display time values.
        :param v: When set to `true` will enable verbose output.
        z/_cat/ml/data_frame/analytics/z/_cat/ml/data_frame/analyticsNr@   r)   r   r   r   r   r   r   r   r   r   r   r4   r   r   r   r   r   r   )r!   r?   r@   r)   r   r   r   r   r   r   r   r   r   r   r4   r   r"   r#   r$   r%   r%   r&   ml_data_frame_analytics  sH   Jz!CatClient.ml_data_frame_analytics)datafeed_idr@   r   r   r   r   r   r   r   r   r   r   r4   r   rC   zSt.Literal['ae', 'bc', 'id', 'na', 'ne', 'ni', 'nn', 's', 'sba', 'sc', 'seah', 'st']c                C   s
  |t vrdt| }nd}i }|dur||d< |dur ||d< |dur(||d< |dur0||d< |dur8||d< |dur@||d	< |durH||d
< |	durP|	|d< |
durX|
|d< |dur`||d< |durh||d< |durp||d< |durx||d< ddi}| jd|||dS )aa  
        Gets configuration and usage information about datafeeds.

        `<https://www.elastic.co/guide/en/elasticsearch/reference/8.11/cat-datafeeds.html>`_

        :param datafeed_id: A numerical character string that uniquely identifies the
            datafeed.
        :param allow_no_match: Specifies what to do when the request: * Contains wildcard
            expressions and there are no datafeeds that match. * Contains the `_all`
            string or no identifiers and there are no matches. * Contains wildcard expressions
            and there are only partial matches. If `true`, the API returns an empty datafeeds
            array when there are no matches and the subset of results when there are
            partial matches. If `false`, the API returns a 404 status code when there
            are no matches or only partial matches.
        :param format: Specifies the format to return the columnar data in, can be set
            to `text`, `json`, `cbor`, `yaml`, or `smile`.
        :param h: Comma-separated list of column names to display.
        :param help: When set to `true` will output available columns. This option can't
            be combined with any other query string option.
        :param local: If `true`, the request computes the list of selected nodes from
            the local cluster state. If `false` the list of selected nodes are computed
            from the cluster state of the master node. In both cases the coordinating
            node will send requests for further information to each selected node.
        :param master_timeout: Period to wait for a connection to the master node.
        :param s: Comma-separated list of column names or column aliases used to sort
            the response.
        :param time: The unit used to display time values.
        :param v: When set to `true` will enable verbose output.
        z/_cat/ml/datafeeds/z/_cat/ml/datafeedsNr@   r   r   r   r   r   r   r   r   r   r   r4   r   r   r   r   r   r   )r!   rC   r@   r   r   r   r   r   r   r   r   r   r   r4   r   r"   r#   r$   r%   r%   r&   ml_datafeedsX  sD   NzCatClient.ml_datafeeds)job_idr@   r)   r   r   r   r   r   r   r   r   r   r   r4   r   rE   aX  t.Literal['assignment_explanation', 'buckets.count', 'buckets.time.exp_avg', 'buckets.time.exp_avg_hour', 'buckets.time.max', 'buckets.time.min', 'buckets.time.total', 'data.buckets', 'data.earliest_record', 'data.empty_buckets', 'data.input_bytes', 'data.input_fields', 'data.input_records', 'data.invalid_dates', 'data.last', 'data.last_empty_bucket', 'data.last_sparse_bucket', 'data.latest_record', 'data.missing_fields', 'data.out_of_order_timestamps', 'data.processed_fields', 'data.processed_records', 'data.sparse_buckets', 'forecasts.memory.avg', 'forecasts.memory.max', 'forecasts.memory.min', 'forecasts.memory.total', 'forecasts.records.avg', 'forecasts.records.max', 'forecasts.records.min', 'forecasts.records.total', 'forecasts.time.avg', 'forecasts.time.max', 'forecasts.time.min', 'forecasts.time.total', 'forecasts.total', 'id', 'model.bucket_allocation_failures', 'model.by_fields', 'model.bytes', 'model.bytes_exceeded', 'model.categorization_status', 'model.categorized_doc_count', 'model.dead_category_count', 'model.failed_category_count', 'model.frequent_category_count', 'model.log_time', 'model.memory_limit', 'model.memory_status', 'model.over_fields', 'model.partition_fields', 'model.rare_category_count', 'model.timestamp', 'model.total_category_count', 'node.address', 'node.ephemeral_id', 'node.id', 'node.name', 'opened_time', 'state']c                C   rA   )a}  
        Gets configuration and usage information about anomaly detection jobs.

        `<https://www.elastic.co/guide/en/elasticsearch/reference/8.11/cat-anomaly-detectors.html>`_

        :param job_id: Identifier for the anomaly detection job.
        :param allow_no_match: Specifies what to do when the request: * Contains wildcard
            expressions and there are no jobs that match. * Contains the `_all` string
            or no identifiers and there are no matches. * Contains wildcard expressions
            and there are only partial matches. If `true`, the API returns an empty jobs
            array when there are no matches and the subset of results when there are
            partial matches. If `false`, the API returns a 404 status code when there
            are no matches or only partial matches.
        :param bytes: The unit used to display byte values.
        :param format: Specifies the format to return the columnar data in, can be set
            to `text`, `json`, `cbor`, `yaml`, or `smile`.
        :param h: Comma-separated list of column names to display.
        :param help: When set to `true` will output available columns. This option can't
            be combined with any other query string option.
        :param local: If `true`, the request computes the list of selected nodes from
            the local cluster state. If `false` the list of selected nodes are computed
            from the cluster state of the master node. In both cases the coordinating
            node will send requests for further information to each selected node.
        :param master_timeout: Period to wait for a connection to the master node.
        :param s: Comma-separated list of column names or column aliases used to sort
            the response.
        :param time: The unit used to display time values.
        :param v: When set to `true` will enable verbose output.
        z/_cat/ml/anomaly_detectors/z/_cat/ml/anomaly_detectorsNr@   r)   r   r   r   r   r   r   r   r   r   r   r4   r   r   r   r   r   r   )r!   rE   r@   r)   r   r   r   r   r   r   r   r   r   r   r4   r   r"   r#   r$   r%   r%   r&   ml_jobs  sH   QzCatClient.ml_jobsfromfrom_)Zparameter_aliases)model_idr@   r)   r   r   r   rH   r   r   r   r   r   r   r   sizer   rI   zt.Literal['create_time', 'created_by', 'data_frame_analytics_id', 'description', 'heap_size', 'id', 'ingest.count', 'ingest.current', 'ingest.failed', 'ingest.pipelines', 'ingest.time', 'license', 'operations', 'version']rJ   c                C   *  |t vrdt| }nd}i }|dur||d< |dur ||d< |dur(||d< |dur0||d< |dur8||d< |dur@||d	< |durH||d
< |	durP|	|d< |
durX|
|d< |dur`||d< |durh||d< |durp||d< |durx||d< |dur||d< |dur||d< ddi}| jd|||dS )a  
        Gets configuration and usage information about inference trained models.

        `<https://www.elastic.co/guide/en/elasticsearch/reference/8.11/cat-trained-model.html>`_

        :param model_id: A unique identifier for the trained model.
        :param allow_no_match: Specifies what to do when the request: contains wildcard
            expressions and there are no models that match; contains the `_all` string
            or no identifiers and there are no matches; contains wildcard expressions
            and there are only partial matches. If `true`, the API returns an empty array
            when there are no matches and the subset of results when there are partial
            matches. If `false`, the API returns a 404 status code when there are no
            matches or only partial matches.
        :param bytes: The unit used to display byte values.
        :param format: Specifies the format to return the columnar data in, can be set
            to `text`, `json`, `cbor`, `yaml`, or `smile`.
        :param from_: Skips the specified number of transforms.
        :param h: A comma-separated list of column names to display.
        :param help: When set to `true` will output available columns. This option can't
            be combined with any other query string option.
        :param local: If `true`, the request computes the list of selected nodes from
            the local cluster state. If `false` the list of selected nodes are computed
            from the cluster state of the master node. In both cases the coordinating
            node will send requests for further information to each selected node.
        :param master_timeout: Period to wait for a connection to the master node.
        :param s: A comma-separated list of column names or aliases used to sort the
            response.
        :param size: The maximum number of transforms to display.
        :param v: When set to `true` will enable verbose output.
        z/_cat/ml/trained_models/z/_cat/ml/trained_modelsNr@   r)   r   r   r   rG   r   r   r   r   r   r   r   rJ   r   r   r   r   r   r   )r!   rI   r@   r)   r   r   r   rH   r   r   r   r   r   r   r   rJ   r   r"   r#   r$   r%   r%   r&   ml_trained_modelsA  sL   SzCatClient.ml_trained_modelsc                C   r8   )a  
        Returns information about custom node attributes.

        `<https://www.elastic.co/guide/en/elasticsearch/reference/8.11/cat-nodeattrs.html>`_

        :param format: Specifies the format to return the columnar data in, can be set
            to `text`, `json`, `cbor`, `yaml`, or `smile`.
        :param h: List of columns to appear in the response. Supports simple wildcards.
        :param help: When set to `true` will output available columns. This option can't
            be combined with any other query string option.
        :param local: If `true`, the request computes the list of selected nodes from
            the local cluster state. If `false` the list of selected nodes are computed
            from the cluster state of the master node. In both cases the coordinating
            node will send requests for further information to each selected node.
        :param master_timeout: Period to wait for a connection to the master node.
        :param s: List of columns that determine how the table should be sorted. Sorting
            defaults to ascending and can be changed by setting `:asc` or `:desc` as
            a suffix to the column name.
        :param v: When set to `true` will enable verbose output.
        z/_cat/nodeattrsNr   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r6   r9   r%   r%   r&   	nodeattrs  r:   zCatClient.nodeattrs)r)   r   r   r   full_idr   r   r   r;   r   r   r   r   r   rN   c                C   s  d}i }|dur||d< |dur||d< |dur||d< |dur$||d< |dur,||d< |dur4||d< |dur<||d	< |durD||d
< |	durL|	|d< |
durT|
|d< |dur\||d< |durd||d< |durl||d< |durt||d< ddi}| j d|||dS )a(  
        Returns basic statistics about performance of cluster nodes.

        `<https://www.elastic.co/guide/en/elasticsearch/reference/8.11/cat-nodes.html>`_

        :param bytes: The unit used to display byte values.
        :param format: Specifies the format to return the columnar data in, can be set
            to `text`, `json`, `cbor`, `yaml`, or `smile`.
        :param full_id: If `true`, return the full node ID. If `false`, return the shortened
            node ID.
        :param h: List of columns to appear in the response. Supports simple wildcards.
        :param help: When set to `true` will output available columns. This option can't
            be combined with any other query string option.
        :param include_unloaded_segments: If true, the response includes information
            from segments that are not loaded into memory.
        :param local: If `true`, the request computes the list of selected nodes from
            the local cluster state. If `false` the list of selected nodes are computed
            from the cluster state of the master node. In both cases the coordinating
            node will send requests for further information to each selected node.
        :param master_timeout: Period to wait for a connection to the master node.
        :param s: List of columns that determine how the table should be sorted. Sorting
            defaults to ascending and can be changed by setting `:asc` or `:desc` as
            a suffix to the column name.
        :param v: When set to `true` will enable verbose output.
        z/_cat/nodesNr)   r   r   r   rN   r   r   r   r;   r   r   r   r   r   r   r   r   r   r6   )r!   r)   r   r   r   rN   r   r   r   r;   r   r   r   r   r   r"   r#   r$   r%   r%   r&   nodes  sD   0zCatClient.nodesc                C   r8   )a  
        Returns a concise representation of the cluster pending tasks.

        `<https://www.elastic.co/guide/en/elasticsearch/reference/8.11/cat-pending-tasks.html>`_

        :param format: Specifies the format to return the columnar data in, can be set
            to `text`, `json`, `cbor`, `yaml`, or `smile`.
        :param h: List of columns to appear in the response. Supports simple wildcards.
        :param help: When set to `true` will output available columns. This option can't
            be combined with any other query string option.
        :param local: If `true`, the request computes the list of selected nodes from
            the local cluster state. If `false` the list of selected nodes are computed
            from the cluster state of the master node. In both cases the coordinating
            node will send requests for further information to each selected node.
        :param master_timeout: Period to wait for a connection to the master node.
        :param s: List of columns that determine how the table should be sorted. Sorting
            defaults to ascending and can be changed by setting `:asc` or `:desc` as
            a suffix to the column name.
        :param v: When set to `true` will enable verbose output.
        z/_cat/pending_tasksNr   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r6   r9   r%   r%   r&   pending_tasksR  r:   zCatClient.pending_tasksc                C   r8   )a  
        Returns information about installed plugins across nodes node.

        `<https://www.elastic.co/guide/en/elasticsearch/reference/8.11/cat-plugins.html>`_

        :param format: Specifies the format to return the columnar data in, can be set
            to `text`, `json`, `cbor`, `yaml`, or `smile`.
        :param h: List of columns to appear in the response. Supports simple wildcards.
        :param help: When set to `true` will output available columns. This option can't
            be combined with any other query string option.
        :param local: If `true`, the request computes the list of selected nodes from
            the local cluster state. If `false` the list of selected nodes are computed
            from the cluster state of the master node. In both cases the coordinating
            node will send requests for further information to each selected node.
        :param master_timeout: Period to wait for a connection to the master node.
        :param s: List of columns that determine how the table should be sorted. Sorting
            defaults to ascending and can be changed by setting `:asc` or `:desc` as
            a suffix to the column name.
        :param v: When set to `true` will enable verbose output.
        z/_cat/pluginsNr   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r6   r9   r%   r%   r&   plugins  r:   zCatClient.plugins)r0   active_onlyr)   detailedr   r   r   r   r   r   r   r   r   r   r   rR   rS   c                C   rA   )a  
        Returns information about index shard recoveries, both on-going completed.

        `<https://www.elastic.co/guide/en/elasticsearch/reference/8.11/cat-recovery.html>`_

        :param index: A comma-separated list of data streams, indices, and aliases used
            to limit the request. Supports wildcards (`*`). To target all data streams
            and indices, omit this parameter or use `*` or `_all`.
        :param active_only: If `true`, the response only includes ongoing shard recoveries.
        :param bytes: The unit used to display byte values.
        :param detailed: If `true`, the response includes detailed information about
            shard recoveries.
        :param format: Specifies the format to return the columnar data in, can be set
            to `text`, `json`, `cbor`, `yaml`, or `smile`.
        :param h: List of columns to appear in the response. Supports simple wildcards.
        :param help: When set to `true` will output available columns. This option can't
            be combined with any other query string option.
        :param local: If `true`, the request computes the list of selected nodes from
            the local cluster state. If `false` the list of selected nodes are computed
            from the cluster state of the master node. In both cases the coordinating
            node will send requests for further information to each selected node.
        :param master_timeout: Period to wait for a connection to the master node.
        :param s: List of columns that determine how the table should be sorted. Sorting
            defaults to ascending and can be changed by setting `:asc` or `:desc` as
            a suffix to the column name.
        :param v: When set to `true` will enable verbose output.
        z/_cat/recovery/z/_cat/recoveryNrR   r)   rS   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   )r!   r0   rR   r)   rS   r   r   r   r   r   r   r   r   r   r   r   r"   r#   r$   r%   r%   r&   recovery  sH   3zCatClient.recoveryc                C   r8   )a  
        Returns information about snapshot repositories registered in the cluster.

        `<https://www.elastic.co/guide/en/elasticsearch/reference/8.11/cat-repositories.html>`_

        :param format: Specifies the format to return the columnar data in, can be set
            to `text`, `json`, `cbor`, `yaml`, or `smile`.
        :param h: List of columns to appear in the response. Supports simple wildcards.
        :param help: When set to `true` will output available columns. This option can't
            be combined with any other query string option.
        :param local: If `true`, the request computes the list of selected nodes from
            the local cluster state. If `false` the list of selected nodes are computed
            from the cluster state of the master node. In both cases the coordinating
            node will send requests for further information to each selected node.
        :param master_timeout: Period to wait for a connection to the master node.
        :param s: List of columns that determine how the table should be sorted. Sorting
            defaults to ascending and can be changed by setting `:asc` or `:desc` as
            a suffix to the column name.
        :param v: When set to `true` will enable verbose output.
        z/_cat/repositoriesNr   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r6   r9   r%   r%   r&   repositories1  r:   zCatClient.repositories)r0   r)   r   r   r   r   r   r   r   r   r   r   r   c                C   r   )a+  
        Provides low-level information about the segments in the shards of an index.

        `<https://www.elastic.co/guide/en/elasticsearch/reference/8.11/cat-segments.html>`_

        :param index: A comma-separated list of data streams, indices, and aliases used
            to limit the request. Supports wildcards (`*`). To target all data streams
            and indices, omit this parameter or use `*` or `_all`.
        :param bytes: The unit used to display byte values.
        :param format: Specifies the format to return the columnar data in, can be set
            to `text`, `json`, `cbor`, `yaml`, or `smile`.
        :param h: List of columns to appear in the response. Supports simple wildcards.
        :param help: When set to `true` will output available columns. This option can't
            be combined with any other query string option.
        :param local: If `true`, the request computes the list of selected nodes from
            the local cluster state. If `false` the list of selected nodes are computed
            from the cluster state of the master node. In both cases the coordinating
            node will send requests for further information to each selected node.
        :param master_timeout: Period to wait for a connection to the master node.
        :param s: List of columns that determine how the table should be sorted. Sorting
            defaults to ascending and can be changed by setting `:asc` or `:desc` as
            a suffix to the column name.
        :param v: When set to `true` will enable verbose output.
        z/_cat/segments/z/_cat/segmentsNr)   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r!   r0   r)   r   r   r   r   r   r   r   r   r   r   r   r"   r#   r$   r%   r%   r&   segmentst  r+   zCatClient.segmentsc                C   r   )a  
        Provides a detailed view of shard allocation on nodes.

        `<https://www.elastic.co/guide/en/elasticsearch/reference/8.11/cat-shards.html>`_

        :param index: A comma-separated list of data streams, indices, and aliases used
            to limit the request. Supports wildcards (`*`). To target all data streams
            and indices, omit this parameter or use `*` or `_all`.
        :param bytes: The unit used to display byte values.
        :param format: Specifies the format to return the columnar data in, can be set
            to `text`, `json`, `cbor`, `yaml`, or `smile`.
        :param h: List of columns to appear in the response. Supports simple wildcards.
        :param help: When set to `true` will output available columns. This option can't
            be combined with any other query string option.
        :param local: If `true`, the request computes the list of selected nodes from
            the local cluster state. If `false` the list of selected nodes are computed
            from the cluster state of the master node. In both cases the coordinating
            node will send requests for further information to each selected node.
        :param master_timeout: Period to wait for a connection to the master node.
        :param s: List of columns that determine how the table should be sorted. Sorting
            defaults to ascending and can be changed by setting `:asc` or `:desc` as
            a suffix to the column name.
        :param v: When set to `true` will enable verbose output.
        z/_cat/shards/z/_cat/shardsNr)   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   rV   r%   r%   r&   shards  r+   zCatClient.shards)
repositoryr   r   r   r   r   r   ignore_unavailabler   r   r   r   r   rY   rZ   c                C   r   )aj  
        Returns all snapshots in a specific repository.

        `<https://www.elastic.co/guide/en/elasticsearch/reference/8.11/cat-snapshots.html>`_

        :param repository: A comma-separated list of snapshot repositories used to limit
            the request. Accepts wildcard expressions. `_all` returns all repositories.
            If any repository fails during the request, Elasticsearch returns an error.
        :param format: Specifies the format to return the columnar data in, can be set
            to `text`, `json`, `cbor`, `yaml`, or `smile`.
        :param h: List of columns to appear in the response. Supports simple wildcards.
        :param help: When set to `true` will output available columns. This option can't
            be combined with any other query string option.
        :param ignore_unavailable: If `true`, the response does not include information
            from unavailable snapshots.
        :param local: If `true`, the request computes the list of selected nodes from
            the local cluster state. If `false` the list of selected nodes are computed
            from the cluster state of the master node. In both cases the coordinating
            node will send requests for further information to each selected node.
        :param master_timeout: Period to wait for a connection to the master node.
        :param s: List of columns that determine how the table should be sorted. Sorting
            defaults to ascending and can be changed by setting `:asc` or `:desc` as
            a suffix to the column name.
        :param v: When set to `true` will enable verbose output.
        z/_cat/snapshots/z/_cat/snapshotsNr   r   r   r   r   r   rZ   r   r   r   r   r   r   r   r   r   r   )r!   rY   r   r   r   r   r   r   rZ   r   r   r   r   r   r"   r#   r$   r%   r%   r&   	snapshots  s@   -zCatClient.snapshots)actionsrS   r   r   r   r   r   r   r   r   r(   parent_task_idr   r   r   r\   r]   c                C   s  d}i }|dur||d< |dur||d< |dur||d< |dur$||d< |dur,||d< |dur4||d< |dur<||d	< |durD||d
< |	durL|	|d< |
durT|
|d< |dur\||d< |durd||d< |durl||d< |durt||d< |dur|||d< ddi}| j d|||dS )a  
        Returns information about the tasks currently executing on one or more nodes
        in the cluster.

        `<https://www.elastic.co/guide/en/elasticsearch/reference/8.11/tasks.html>`_

        :param actions: The task action names, which are used to limit the response.
        :param detailed: If `true`, the response includes detailed information about
            shard recoveries.
        :param format: Specifies the format to return the columnar data in, can be set
            to `text`, `json`, `cbor`, `yaml`, or `smile`.
        :param h: List of columns to appear in the response. Supports simple wildcards.
        :param help: When set to `true` will output available columns. This option can't
            be combined with any other query string option.
        :param local: If `true`, the request computes the list of selected nodes from
            the local cluster state. If `false` the list of selected nodes are computed
            from the cluster state of the master node. In both cases the coordinating
            node will send requests for further information to each selected node.
        :param master_timeout: Period to wait for a connection to the master node.
        :param node_id: Unique node identifiers, which are used to limit the response.
        :param parent_task_id: The parent task identifier, which is used to limit the
            response.
        :param s: List of columns that determine how the table should be sorted. Sorting
            defaults to ascending and can be changed by setting `:asc` or `:desc` as
            a suffix to the column name.
        :param v: When set to `true` will enable verbose output.
        z/_cat/tasksNr\   rS   r   r   r   r   r   r   r   r   r(   r]   r   r   r   r   r   r   r   r6   )r!   r\   rS   r   r   r   r   r   r   r   r   r(   r]   r   r   r   r"   r#   r$   r%   r%   r&   tasksc  sH   1zCatClient.tasksc                C   r,   )aj  
        Returns information about existing templates.

        `<https://www.elastic.co/guide/en/elasticsearch/reference/8.11/cat-templates.html>`_

        :param name: The name of the template to return. Accepts wildcard expressions.
            If omitted, all templates are returned.
        :param format: Specifies the format to return the columnar data in, can be set
            to `text`, `json`, `cbor`, `yaml`, or `smile`.
        :param h: List of columns to appear in the response. Supports simple wildcards.
        :param help: When set to `true` will output available columns. This option can't
            be combined with any other query string option.
        :param local: If `true`, the request computes the list of selected nodes from
            the local cluster state. If `false` the list of selected nodes are computed
            from the cluster state of the master node. In both cases the coordinating
            node will send requests for further information to each selected node.
        :param master_timeout: Period to wait for a connection to the master node.
        :param s: List of columns that determine how the table should be sorted. Sorting
            defaults to ascending and can be changed by setting `:asc` or `:desc` as
            a suffix to the column name.
        :param v: When set to `true` will enable verbose output.
        z/_cat/templates/z/_cat/templatesNr   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r-   r%   r%   r&   	templates  r/   zCatClient.templates)thread_pool_patternsr   r   r   r   r   r   r   r   r   r   r4   r   r`   c                C   r   )a  
        Returns cluster-wide thread pool statistics per node. By default the active,
        queue and rejected statistics are returned for all thread pools.

        `<https://www.elastic.co/guide/en/elasticsearch/reference/8.11/cat-thread-pool.html>`_

        :param thread_pool_patterns: A comma-separated list of thread pool names used
            to limit the request. Accepts wildcard expressions.
        :param format: Specifies the format to return the columnar data in, can be set
            to `text`, `json`, `cbor`, `yaml`, or `smile`.
        :param h: List of columns to appear in the response. Supports simple wildcards.
        :param help: When set to `true` will output available columns. This option can't
            be combined with any other query string option.
        :param local: If `true`, the request computes the list of selected nodes from
            the local cluster state. If `false` the list of selected nodes are computed
            from the cluster state of the master node. In both cases the coordinating
            node will send requests for further information to each selected node.
        :param master_timeout: Period to wait for a connection to the master node.
        :param s: List of columns that determine how the table should be sorted. Sorting
            defaults to ascending and can be changed by setting `:asc` or `:desc` as
            a suffix to the column name.
        :param time: The unit used to display time values.
        :param v: When set to `true` will enable verbose output.
        z/_cat/thread_pool/z/_cat/thread_poolNr   r   r   r   r   r   r   r   r   r   r4   r   r   r   r   r   r   )r!   r`   r   r   r   r   r   r   r   r   r   r   r4   r   r"   r#   r$   r%   r%   r&   thread_pool  r+   zCatClient.thread_pool)transform_idr@   r   r   r   rH   r   r   r   r   r   r   r   rJ   r4   r   rb   a]  t.Literal['changes_last_detection_time', 'checkpoint', 'checkpoint_duration_time_exp_avg', 'checkpoint_progress', 'create_time', 'delete_time', 'description', 'dest_index', 'docs_per_second', 'documents_deleted', 'documents_indexed', 'documents_processed', 'frequency', 'id', 'index_failure', 'index_time', 'index_total', 'indexed_documents_exp_avg', 'last_search_time', 'max_page_search_size', 'pages_processed', 'pipeline', 'processed_documents_exp_avg', 'processing_time', 'reason', 'search_failure', 'search_time', 'search_total', 'source_index', 'state', 'transform_type', 'trigger_count', 'version']c                C   rK   )a5  
        Gets configuration and usage information about transforms.

        `<https://www.elastic.co/guide/en/elasticsearch/reference/8.11/cat-transforms.html>`_

        :param transform_id: A transform identifier or a wildcard expression. If you
            do not specify one of these options, the API returns information for all
            transforms.
        :param allow_no_match: Specifies what to do when the request: contains wildcard
            expressions and there are no transforms that match; contains the `_all` string
            or no identifiers and there are no matches; contains wildcard expressions
            and there are only partial matches. If `true`, it returns an empty transforms
            array when there are no matches and the subset of results when there are
            partial matches. If `false`, the request returns a 404 status code when there
            are no matches or only partial matches.
        :param format: Specifies the format to return the columnar data in, can be set
            to `text`, `json`, `cbor`, `yaml`, or `smile`.
        :param from_: Skips the specified number of transforms.
        :param h: Comma-separated list of column names to display.
        :param help: When set to `true` will output available columns. This option can't
            be combined with any other query string option.
        :param local: If `true`, the request computes the list of selected nodes from
            the local cluster state. If `false` the list of selected nodes are computed
            from the cluster state of the master node. In both cases the coordinating
            node will send requests for further information to each selected node.
        :param master_timeout: Period to wait for a connection to the master node.
        :param s: Comma-separated list of column names or column aliases used to sort
            the response.
        :param size: The maximum number of transforms to obtain.
        :param time: The unit used to display time values.
        :param v: When set to `true` will enable verbose output.
        z/_cat/transforms/z/_cat/transformsNr@   r   r   r   rG   r   r   r   r   r   r   r   rJ   r4   r   r   r   r   r   r   )r!   rb   r@   r   r   r   rH   r   r   r   r   r   r   r   rJ   r4   r   r"   r#   r$   r%   r%   r&   
transformsR  sL   UzCatClient.transforms)(__name__
__module____qualname__r   tOptionalUnionstrSequenceboolr   Anyr   r'   r*   r.   r1   r3   r7   r   r=   r>   rB   rD   rF   intrL   rM   rO   rP   rQ   rT   rU   rW   rX   r[   r^   r_   ra   rc   r%   r%   r%   r&   r	      s
   U	
O	
H	
J	
O	
L	
B!"o	
B	
 ./0o+./q	
 .12v	
 !/01x	
B	
R	
B	
B	
X	
B	
O	
O	
N	
U	
H	
O	,-01r	   )typingrg   Zelastic_transportr   r   _baser   utilsr   r   r   r	   r%   r%   r%   r&   <module>   s
   