3 ²˜‚]» ã@s,ddlmZmZmZmZGdd„deƒZdS)é)ÚNamespacedClientÚ query_paramsÚ _make_pathÚ SKIP_IN_PATHc@sDeZdZeddddddƒd dd „ƒZeddddddƒd d d „ƒZdS)Ú IndicesClientZallow_no_indicesZexpand_wildcardsZignore_unavailableZmaster_timeoutÚtimeoutZwait_for_active_shardsNcCs(|tkrtdƒ‚|jjdt|dƒ|d�S)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Ú transportÚperform_requestr)ÚselfÚindexr ©rúK/tmp/pip-build-z81i1n8o/elasticsearch/elasticsearch/client/xpack/indices.pyÚfreezeszIndicesClient.freezecCs(|tkrtdƒ‚|jjdt|dƒ|d�S)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 rrrÚunfreeze%szIndicesClient.unfreeze)N)N)Ú__name__Ú __module__Ú __qualname__rrrrrrrrs  rN)ÚutilsrrrrrrrrrÚs