3 ] @s,ddlmZmZmZmZGdddeZdS))NamespacedClient query_params _make_path SKIP_IN_PATHc@sDeZdZeddddddd dd Zeddddddd d d ZdS) IndicesClientZallow_no_indicesZexpand_wildcardsZignore_unavailableZmaster_timeouttimeoutZwait_for_active_shardsNcCs(|tkrtd|jjdt|d|dS)a ``_ :arg index: The name of the index to freeze :arg allow_no_indices: Whether to ignore if a wildcard indices expression resolves into no concrete indices. (This includes `_all` string or when no indices have been specified) :arg expand_wildcards: Whether to expand wildcard expression to concrete indices that are open, closed or both., default 'closed', valid choices are: 'open', 'closed', 'none', 'all' :arg ignore_unavailable: Whether specified concrete indices should be ignored when unavailable (missing or closed) :arg master_timeout: Specify timeout for connection to master :arg timeout: Explicit operation timeout :arg wait_for_active_shards: Sets the number of active shards to wait for before the operation returns. z3Empty value passed for a required argument 'index'.POSTZ_freeze)params)r ValueError transportperform_requestr)selfindexr rK/tmp/pip-build-z81i1n8o/elasticsearch/elasticsearch/client/xpack/indices.pyfreezeszIndicesClient.freezecCs(|tkrtd|jjdt|d|dS)a ``_ :arg index: The name of the index to unfreeze :arg allow_no_indices: Whether to ignore if a wildcard indices expression resolves into no concrete indices. (This includes `_all` string or when no indices have been specified) :arg expand_wildcards: Whether to expand wildcard expression to concrete indices that are open, closed or both., default 'closed', valid choices are: 'open', 'closed', 'none', 'all' :arg ignore_unavailable: Whether specified concrete indices should be ignored when unavailable (missing or closed) :arg master_timeout: Specify timeout for connection to master :arg timeout: Explicit operation timeout :arg wait_for_active_shards: Sets the number of active shards to wait for before the operation returns. z3Empty value passed for a required argument 'index'.rZ _unfreeze)r )rr r r r)r rr rrrunfreeze%szIndicesClient.unfreeze)N)N)__name__ __module__ __qualname__rrrrrrrrs  rN)utilsrrrrrrrrrs