elasticsearch 8.14.0__py3-none-any.whl → 8.15.1__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- elasticsearch/_async/client/__init__.py +200 -168
- elasticsearch/_async/client/async_search.py +35 -20
- elasticsearch/_async/client/autoscaling.py +4 -4
- elasticsearch/_async/client/cat.py +785 -180
- elasticsearch/_async/client/ccr.py +20 -32
- elasticsearch/_async/client/cluster.py +87 -79
- elasticsearch/_async/client/connector.py +1470 -0
- elasticsearch/_async/client/dangling_indices.py +7 -11
- elasticsearch/_async/client/enrich.py +8 -8
- elasticsearch/_async/client/eql.py +17 -16
- elasticsearch/_async/client/esql.py +2 -2
- elasticsearch/_async/client/features.py +2 -2
- elasticsearch/_async/client/fleet.py +18 -17
- elasticsearch/_async/client/graph.py +4 -4
- elasticsearch/_async/client/ilm.py +36 -44
- elasticsearch/_async/client/indices.py +295 -317
- elasticsearch/_async/client/inference.py +42 -33
- elasticsearch/_async/client/ingest.py +197 -23
- elasticsearch/_async/client/license.py +18 -10
- elasticsearch/_async/client/logstash.py +6 -6
- elasticsearch/_async/client/migration.py +3 -3
- elasticsearch/_async/client/ml.py +383 -176
- elasticsearch/_async/client/monitoring.py +2 -2
- elasticsearch/_async/client/nodes.py +32 -32
- elasticsearch/_async/client/query_rules.py +384 -0
- elasticsearch/_async/client/rollup.py +13 -13
- elasticsearch/_async/client/search_application.py +10 -10
- elasticsearch/_async/client/searchable_snapshots.py +9 -13
- elasticsearch/_async/client/security.py +577 -104
- elasticsearch/_async/client/shutdown.py +7 -7
- elasticsearch/_async/client/slm.py +11 -13
- elasticsearch/_async/client/snapshot.py +39 -52
- elasticsearch/_async/client/sql.py +12 -14
- elasticsearch/_async/client/ssl.py +1 -1
- elasticsearch/_async/client/synonyms.py +11 -9
- elasticsearch/_async/client/tasks.py +9 -10
- elasticsearch/_async/client/text_structure.py +3 -3
- elasticsearch/_async/client/transform.py +89 -34
- elasticsearch/_async/client/watcher.py +30 -15
- elasticsearch/_async/client/xpack.py +6 -7
- elasticsearch/_otel.py +24 -6
- elasticsearch/_sync/client/__init__.py +200 -168
- elasticsearch/_sync/client/async_search.py +35 -20
- elasticsearch/_sync/client/autoscaling.py +4 -4
- elasticsearch/_sync/client/cat.py +785 -180
- elasticsearch/_sync/client/ccr.py +20 -32
- elasticsearch/_sync/client/cluster.py +87 -79
- elasticsearch/_sync/client/connector.py +1470 -0
- elasticsearch/_sync/client/dangling_indices.py +7 -11
- elasticsearch/_sync/client/enrich.py +8 -8
- elasticsearch/_sync/client/eql.py +17 -16
- elasticsearch/_sync/client/esql.py +2 -2
- elasticsearch/_sync/client/features.py +2 -2
- elasticsearch/_sync/client/fleet.py +18 -17
- elasticsearch/_sync/client/graph.py +4 -4
- elasticsearch/_sync/client/ilm.py +36 -44
- elasticsearch/_sync/client/indices.py +295 -317
- elasticsearch/_sync/client/inference.py +42 -33
- elasticsearch/_sync/client/ingest.py +197 -23
- elasticsearch/_sync/client/license.py +18 -10
- elasticsearch/_sync/client/logstash.py +6 -6
- elasticsearch/_sync/client/migration.py +3 -3
- elasticsearch/_sync/client/ml.py +383 -176
- elasticsearch/_sync/client/monitoring.py +2 -2
- elasticsearch/_sync/client/nodes.py +32 -32
- elasticsearch/_sync/client/query_rules.py +384 -0
- elasticsearch/_sync/client/rollup.py +13 -13
- elasticsearch/_sync/client/search_application.py +10 -10
- elasticsearch/_sync/client/searchable_snapshots.py +9 -13
- elasticsearch/_sync/client/security.py +577 -104
- elasticsearch/_sync/client/shutdown.py +7 -7
- elasticsearch/_sync/client/slm.py +11 -13
- elasticsearch/_sync/client/snapshot.py +39 -52
- elasticsearch/_sync/client/sql.py +12 -14
- elasticsearch/_sync/client/ssl.py +1 -1
- elasticsearch/_sync/client/synonyms.py +11 -9
- elasticsearch/_sync/client/tasks.py +9 -10
- elasticsearch/_sync/client/text_structure.py +3 -3
- elasticsearch/_sync/client/transform.py +89 -34
- elasticsearch/_sync/client/watcher.py +30 -15
- elasticsearch/_sync/client/xpack.py +6 -7
- elasticsearch/_version.py +1 -1
- elasticsearch/client.py +3 -3
- elasticsearch/helpers/actions.py +120 -106
- elasticsearch/helpers/vectorstore/_async/vectorstore.py +36 -6
- elasticsearch/helpers/vectorstore/_sync/vectorstore.py +36 -6
- elasticsearch/serializer.py +34 -0
- elasticsearch-8.15.1.dist-info/METADATA +177 -0
- elasticsearch-8.15.1.dist-info/RECORD +117 -0
- {elasticsearch-8.14.0.dist-info → elasticsearch-8.15.1.dist-info}/WHEEL +1 -2
- elasticsearch/_async/client/query_ruleset.py +0 -205
- elasticsearch/_sync/client/query_ruleset.py +0 -205
- elasticsearch-8.14.0.dist-info/METADATA +0 -161
- elasticsearch-8.14.0.dist-info/RECORD +0 -116
- elasticsearch-8.14.0.dist-info/top_level.txt +0 -1
- {elasticsearch-8.14.0.dist-info → elasticsearch-8.15.1.dist-info/licenses}/LICENSE +0 -0
- {elasticsearch-8.14.0.dist-info → elasticsearch-8.15.1.dist-info/licenses}/NOTICE +0 -0
|
@@ -0,0 +1,177 @@
|
|
|
1
|
+
Metadata-Version: 2.3
|
|
2
|
+
Name: elasticsearch
|
|
3
|
+
Version: 8.15.1
|
|
4
|
+
Summary: Python client for Elasticsearch
|
|
5
|
+
Project-URL: Documentation, https://elasticsearch-py.readthedocs.io/
|
|
6
|
+
Project-URL: Homepage, https://github.com/elastic/elasticsearch-py
|
|
7
|
+
Project-URL: Issue Tracker, https://github.com/elastic/elasticsearch-py/issues
|
|
8
|
+
Project-URL: Source Code, https://github.com/elastic/elasticsearch-py
|
|
9
|
+
Author-email: Elastic Client Library Maintainers <client-libs@elastic.co>
|
|
10
|
+
Maintainer-email: Elastic Client Library Maintainers <client-libs@elastic.co>
|
|
11
|
+
License-Expression: Apache-2.0
|
|
12
|
+
License-File: LICENSE
|
|
13
|
+
License-File: NOTICE
|
|
14
|
+
Keywords: REST,client,elastic,elasticsearch,index,kibana,mapping,search
|
|
15
|
+
Classifier: Development Status :: 5 - Production/Stable
|
|
16
|
+
Classifier: Intended Audience :: Developers
|
|
17
|
+
Classifier: License :: OSI Approved :: Apache Software License
|
|
18
|
+
Classifier: Operating System :: OS Independent
|
|
19
|
+
Classifier: Programming Language :: Python
|
|
20
|
+
Classifier: Programming Language :: Python :: 3
|
|
21
|
+
Classifier: Programming Language :: Python :: 3.8
|
|
22
|
+
Classifier: Programming Language :: Python :: 3.9
|
|
23
|
+
Classifier: Programming Language :: Python :: 3.10
|
|
24
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
25
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
26
|
+
Classifier: Programming Language :: Python :: Implementation :: CPython
|
|
27
|
+
Classifier: Programming Language :: Python :: Implementation :: PyPy
|
|
28
|
+
Requires-Python: >=3.8
|
|
29
|
+
Requires-Dist: elastic-transport<9,>=8.13
|
|
30
|
+
Provides-Extra: async
|
|
31
|
+
Requires-Dist: aiohttp<4,>=3; extra == 'async'
|
|
32
|
+
Provides-Extra: dev
|
|
33
|
+
Requires-Dist: aiohttp; extra == 'dev'
|
|
34
|
+
Requires-Dist: black; extra == 'dev'
|
|
35
|
+
Requires-Dist: build; extra == 'dev'
|
|
36
|
+
Requires-Dist: coverage; extra == 'dev'
|
|
37
|
+
Requires-Dist: isort; extra == 'dev'
|
|
38
|
+
Requires-Dist: jinja2; extra == 'dev'
|
|
39
|
+
Requires-Dist: mapbox-vector-tile; extra == 'dev'
|
|
40
|
+
Requires-Dist: nox; extra == 'dev'
|
|
41
|
+
Requires-Dist: numpy; extra == 'dev'
|
|
42
|
+
Requires-Dist: orjson; extra == 'dev'
|
|
43
|
+
Requires-Dist: pandas; extra == 'dev'
|
|
44
|
+
Requires-Dist: pyarrow; extra == 'dev'
|
|
45
|
+
Requires-Dist: pytest; extra == 'dev'
|
|
46
|
+
Requires-Dist: pytest-asyncio; extra == 'dev'
|
|
47
|
+
Requires-Dist: pytest-cov; extra == 'dev'
|
|
48
|
+
Requires-Dist: python-dateutil; extra == 'dev'
|
|
49
|
+
Requires-Dist: pyyaml>=5.4; extra == 'dev'
|
|
50
|
+
Requires-Dist: requests<3,>=2; extra == 'dev'
|
|
51
|
+
Requires-Dist: simsimd; extra == 'dev'
|
|
52
|
+
Requires-Dist: twine; extra == 'dev'
|
|
53
|
+
Requires-Dist: unasync; extra == 'dev'
|
|
54
|
+
Provides-Extra: docs
|
|
55
|
+
Requires-Dist: sphinx; extra == 'docs'
|
|
56
|
+
Requires-Dist: sphinx-autodoc-typehints; extra == 'docs'
|
|
57
|
+
Requires-Dist: sphinx-rtd-theme>=2.0; extra == 'docs'
|
|
58
|
+
Provides-Extra: orjson
|
|
59
|
+
Requires-Dist: orjson>=3; extra == 'orjson'
|
|
60
|
+
Provides-Extra: pyarrow
|
|
61
|
+
Requires-Dist: pyarrow>=1; extra == 'pyarrow'
|
|
62
|
+
Provides-Extra: requests
|
|
63
|
+
Requires-Dist: requests!=2.32.2,<3.0.0,>=2.4.0; extra == 'requests'
|
|
64
|
+
Provides-Extra: vectorstore-mmr
|
|
65
|
+
Requires-Dist: numpy>=1; extra == 'vectorstore-mmr'
|
|
66
|
+
Requires-Dist: simsimd>=3; extra == 'vectorstore-mmr'
|
|
67
|
+
Description-Content-Type: text/markdown
|
|
68
|
+
|
|
69
|
+
<p align="center">
|
|
70
|
+
<img src="https://github.com/elastic/elasticsearch-py/raw/main/docs/logo-elastic-glyph-color.svg" width="20%" alt="Elastic logo" />
|
|
71
|
+
</p>
|
|
72
|
+
|
|
73
|
+
# Elasticsearch Python Client
|
|
74
|
+
|
|
75
|
+
<p align="center">
|
|
76
|
+
<a href="https://pypi.org/project/elasticsearch"><img alt="PyPI Version" src="https://img.shields.io/pypi/v/elasticsearch" /></a>
|
|
77
|
+
<a href="https://pypi.org/project/elasticsearch"><img alt="Python Versions" src="https://img.shields.io/pypi/pyversions/elasticsearch" /></a>
|
|
78
|
+
<a href="https://anaconda.org/conda-forge/elasticsearch"><img alt="Conda Version" src="https://img.shields.io/conda/vn/conda-forge/elasticsearch" /></a>
|
|
79
|
+
<a href="https://pepy.tech/project/elasticsearch?versions=*"><img alt="Downloads" src="https://static.pepy.tech/badge/elasticsearch" /></a>
|
|
80
|
+
<br/>
|
|
81
|
+
<a href="https://github.com/elastic/elasticsearch-py/actions/workflows/ci.yml?query=workflow%3ACI"><img alt="Build Status on GitHub" src="https://github.com/elastic/elasticsearch-py/workflows/CI/badge.svg" /></a>
|
|
82
|
+
<a href="https://buildkite.com/elastic/elasticsearch-py-integration-tests"><img alt="Buildkite Status on Buildkite" src="https://badge.buildkite.com/68e22afcb2ea8f6dcc20834e3a5b5ab4431beee33d3bd751f3.svg" /></a>
|
|
83
|
+
<a href="https://elasticsearch-py.readthedocs.io"><img alt="Documentation Status" src="https://readthedocs.org/projects/elasticsearch-py/badge/?version=latest" /></a><br>
|
|
84
|
+
</p>
|
|
85
|
+
|
|
86
|
+
*The official Python client for Elasticsearch.*
|
|
87
|
+
|
|
88
|
+
|
|
89
|
+
## Features
|
|
90
|
+
|
|
91
|
+
* Translating basic Python data types to and from JSON
|
|
92
|
+
* Configurable automatic discovery of cluster nodes
|
|
93
|
+
* Persistent connections
|
|
94
|
+
* Load balancing (with pluggable selection strategy) across available nodes
|
|
95
|
+
* Failed connection penalization (time based - failed connections won't be
|
|
96
|
+
retried until a timeout is reached)
|
|
97
|
+
* Support for TLS and HTTP authentication
|
|
98
|
+
* Thread safety across requests
|
|
99
|
+
* Pluggable architecture
|
|
100
|
+
* Helper functions for idiomatically using APIs together
|
|
101
|
+
|
|
102
|
+
|
|
103
|
+
## Installation
|
|
104
|
+
|
|
105
|
+
[Download the latest version of Elasticsearch](https://www.elastic.co/downloads/elasticsearch)
|
|
106
|
+
or
|
|
107
|
+
[sign-up](https://cloud.elastic.co/registration?elektra=en-ess-sign-up-page)
|
|
108
|
+
for a free trial of Elastic Cloud.
|
|
109
|
+
|
|
110
|
+
Refer to the [Installation section](https://www.elastic.co/guide/en/elasticsearch/client/python-api/current/getting-started-python.html#_installation)
|
|
111
|
+
of the getting started documentation.
|
|
112
|
+
|
|
113
|
+
|
|
114
|
+
## Connecting
|
|
115
|
+
|
|
116
|
+
Refer to the [Connecting section](https://www.elastic.co/guide/en/elasticsearch/client/python-api/current/getting-started-python.html#_connecting)
|
|
117
|
+
of the getting started documentation.
|
|
118
|
+
|
|
119
|
+
|
|
120
|
+
## Usage
|
|
121
|
+
-----
|
|
122
|
+
|
|
123
|
+
* [Creating an index](https://www.elastic.co/guide/en/elasticsearch/client/python-api/current/getting-started-python.html#_creating_an_index)
|
|
124
|
+
* [Indexing a document](https://www.elastic.co/guide/en/elasticsearch/client/python-api/current/getting-started-python.html#_indexing_documents)
|
|
125
|
+
* [Getting documents](https://www.elastic.co/guide/en/elasticsearch/client/python-api/current/getting-started-python.html#_getting_documents)
|
|
126
|
+
* [Searching documents](https://www.elastic.co/guide/en/elasticsearch/client/python-api/current/getting-started-python.html#_searching_documents)
|
|
127
|
+
* [Updating documents](https://www.elastic.co/guide/en/elasticsearch/client/python-api/current/getting-started-python.html#_updating_documents)
|
|
128
|
+
* [Deleting documents](https://www.elastic.co/guide/en/elasticsearch/client/python-api/current/getting-started-python.html#_deleting_documents)
|
|
129
|
+
* [Deleting an index](https://www.elastic.co/guide/en/elasticsearch/client/python-api/current/getting-started-python.html#_deleting_an_index)
|
|
130
|
+
|
|
131
|
+
|
|
132
|
+
## Compatibility
|
|
133
|
+
|
|
134
|
+
Language clients are forward compatible; meaning that the clients support
|
|
135
|
+
communicating with greater or equal minor versions of Elasticsearch without
|
|
136
|
+
breaking. It does not mean that the clients automatically support new features
|
|
137
|
+
of newer Elasticsearch versions; it is only possible after a release of a new
|
|
138
|
+
client version. For example, a 8.12 client version won't automatically support
|
|
139
|
+
the new features of the 8.13 version of Elasticsearch, the 8.13 client version
|
|
140
|
+
is required for that. Elasticsearch language clients are only backwards
|
|
141
|
+
compatible with default distributions and without guarantees made.
|
|
142
|
+
|
|
143
|
+
| Elasticsearch Version | Elasticsearch-Python Branch | Supported |
|
|
144
|
+
| --------------------- | ------------------------ | --------- |
|
|
145
|
+
| main | main | |
|
|
146
|
+
| 8.x | 8.x | 8.x |
|
|
147
|
+
| 7.x | 7.x | 7.17 |
|
|
148
|
+
|
|
149
|
+
|
|
150
|
+
If you have a need to have multiple versions installed at the same time older
|
|
151
|
+
versions are also released as ``elasticsearch7`` and ``elasticsearch8``.
|
|
152
|
+
|
|
153
|
+
|
|
154
|
+
## Documentation
|
|
155
|
+
|
|
156
|
+
Documentation for the client is [available on elastic.co] and [Read the Docs].
|
|
157
|
+
|
|
158
|
+
[available on elastic.co]: https://www.elastic.co/guide/en/elasticsearch/client/python-api/current/index.html
|
|
159
|
+
[Read the Docs]: https://elasticsearch-py.readthedocs.io
|
|
160
|
+
|
|
161
|
+
|
|
162
|
+
## Feedback 🗣️
|
|
163
|
+
|
|
164
|
+
The engineering team here at Elastic is looking for developers to participate in
|
|
165
|
+
research and feedback sessions to learn more about how you use our Python client and
|
|
166
|
+
what improvements we can make to their design and your workflow. If you're interested in
|
|
167
|
+
sharing your insights into developer experience and language client design, please fill
|
|
168
|
+
out this [short form]. Depending on the number of responses we get, we may either
|
|
169
|
+
contact you for a 1:1 conversation or a focus group with other developers who use the
|
|
170
|
+
same client. Thank you in advance - your feedback is crucial to improving the user
|
|
171
|
+
experience for all Elasticsearch developers!
|
|
172
|
+
|
|
173
|
+
[short form]: https://forms.gle/bYZwDQXijfhfwshn9
|
|
174
|
+
|
|
175
|
+
## License
|
|
176
|
+
|
|
177
|
+
This software is licensed under the [Apache License 2.0](./LICENSE). See [NOTICE](./NOTICE).
|
|
@@ -0,0 +1,117 @@
|
|
|
1
|
+
elasticsearch/__init__.py,sha256=w5YnO16zjOi6loGJ8caUgSXsj3b-Y8OfF0BIddP2BiE,3289
|
|
2
|
+
elasticsearch/_otel.py,sha256=qb5Hpmsfv2rNUyjWPf3A1YIpTx91yt0-bD4Wl0dyyjc,4170
|
|
3
|
+
elasticsearch/_utils.py,sha256=Vr_aNG5ddxInE1PgDpCXMYpXBTNUFM9nYrgbw-cjeCc,1419
|
|
4
|
+
elasticsearch/_version.py,sha256=0JU12tnNQH8UnZmbmQeyZnBfx4Up70zoMUJ3tMilJYo,814
|
|
5
|
+
elasticsearch/client.py,sha256=Zik8KKnpJBvbapk4BhZXC7PZiuZwWqtcmMARDNXMwlA,5213
|
|
6
|
+
elasticsearch/compat.py,sha256=hL3mtqVxWwxeiFbNGADva5XruAwK-A6xcu-vrpnDXFs,2657
|
|
7
|
+
elasticsearch/exceptions.py,sha256=HHqidMTlLXRcNbo4gjsbhHsLfiV4JGg7tx1lXQndG98,4025
|
|
8
|
+
elasticsearch/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
9
|
+
elasticsearch/serializer.py,sha256=vLhhlU6fAjHXB-z2E5ieBe_XKWx4A0o-lbJY9Bknt70,8059
|
|
10
|
+
elasticsearch/transport.py,sha256=CxKo2USPQ-6q4x8Ckfq_dUFWhA1s98p75ghXc3breJI,2248
|
|
11
|
+
elasticsearch/_async/__init__.py,sha256=TZps9WjF-TaSNzBvW5wUCgXRcbHnvE_9xAynBHsMtSo,787
|
|
12
|
+
elasticsearch/_async/helpers.py,sha256=vX2oGiYHO5raZJOnTMEX9hViPNy1YW26IeS60gbhNno,22285
|
|
13
|
+
elasticsearch/_async/client/__init__.py,sha256=KcuZ2owwG-6ohyEZ7t9v7F3KzAOD4eIT_90lHU9SWNc,243443
|
|
14
|
+
elasticsearch/_async/client/_base.py,sha256=wDJIs-4Z_fDBF0_XvfCmfSuyL6Oh8I2nSGDZyP91XCU,15531
|
|
15
|
+
elasticsearch/_async/client/async_search.py,sha256=lxXkg9zN1wABx-yBczMUEkOAzGnfKaPbfwzX-r780Q0,30535
|
|
16
|
+
elasticsearch/_async/client/autoscaling.py,sha256=HCpGPgztl69Aa1GcGjCc1X8UNLEOLEMft8-vvGrFLxk,7741
|
|
17
|
+
elasticsearch/_async/client/cat.py,sha256=yUpg3FLeI36M-8k5RswaHlUNDUmLdILS5F6CqaRZQh0,138697
|
|
18
|
+
elasticsearch/_async/client/ccr.py,sha256=zyShAQqlrYDr2DTafRBQr7TCU8zRJPFrCHPB0bd9bKk,36972
|
|
19
|
+
elasticsearch/_async/client/cluster.py,sha256=yR_eUNhJUz_VjqIB_s5YRkRe530NDWoh48fffkUUj3Y,50435
|
|
20
|
+
elasticsearch/_async/client/connector.py,sha256=Y-I_OQUM8ylOXVNRnl_aCdKRZsGwQNtn9kOtYMoEUYM,57603
|
|
21
|
+
elasticsearch/_async/client/dangling_indices.py,sha256=rrSfpvgeExbePpm3azj5XsKGex3KPaeyPFdHfVYYEX4,6934
|
|
22
|
+
elasticsearch/_async/client/enrich.py,sha256=KsufQwZuMlaDphlARxzkAr5Jm-qw-o8w8XTFt8Z6zSc,9660
|
|
23
|
+
elasticsearch/_async/client/eql.py,sha256=rKEIOpUVKz9rekDcD3daa7gz9d7pE_eJ1gSrp-UproA,13138
|
|
24
|
+
elasticsearch/_async/client/esql.py,sha256=-MA2k0SDmDHlhmpKV_xlx_9QF1LZrp6Ld7cir2g7uhE,4569
|
|
25
|
+
elasticsearch/_async/client/features.py,sha256=Sino6KgXZ7a9qIU27N2jJZ3TW7Fwih-OXpyB5WjDpHc,3550
|
|
26
|
+
elasticsearch/_async/client/fleet.py,sha256=VR2FuxpXzdusIipHVWA77fWsXsLC0udd8x6A2N_oXtw,31148
|
|
27
|
+
elasticsearch/_async/client/graph.py,sha256=nKsUtmn6S8uY-QGmRJxGPM4iFFCXEmr6uX9T09IzZ1I,4594
|
|
28
|
+
elasticsearch/_async/client/ilm.py,sha256=iUdqC2r6QP4_nWxK6pKbHuLaxsDpNVf90Mv7Ejrpxq8,23968
|
|
29
|
+
elasticsearch/_async/client/indices.py,sha256=NSdMw1jRmhNxKdwqr7gxLoh3C9_Q1Jzhrq1qPOTkmXA,217024
|
|
30
|
+
elasticsearch/_async/client/inference.py,sha256=10uV4k_zGrnVclfYCCZjndNCC6pkZHDunRCRLEPaWCA,12260
|
|
31
|
+
elasticsearch/_async/client/ingest.py,sha256=ax6B87Px08tSkUaeNu8N3PJJTdSfDLFGBahBCcbt1Nk,23357
|
|
32
|
+
elasticsearch/_async/client/license.py,sha256=jVnF9pU6F1VIjUdVrJ8S2vs-2ohk1sZ-70RYXCObBJY,12884
|
|
33
|
+
elasticsearch/_async/client/logstash.py,sha256=vscXPt2FeXExBSj-7yghTczVxoQl8nkZ05OdsbYDxyA,6136
|
|
34
|
+
elasticsearch/_async/client/migration.py,sha256=RFeEvSZibAROr3HiheY9XvGyyeLskfImhtPIlnts9c0,5331
|
|
35
|
+
elasticsearch/_async/client/ml.py,sha256=DTDJDEK-mCP7aJPx_CWuPJn96XZWHJzqqLZAWMms5ew,258958
|
|
36
|
+
elasticsearch/_async/client/monitoring.py,sha256=ZR8DvrTRfMuPebZ6A5JHGW2UFhR_-LbAUftF9oZbdug,3818
|
|
37
|
+
elasticsearch/_async/client/nodes.py,sha256=D7QVUvpcAE9HqMu0T6hoMPiEaf_B5VsDXZ6jAhC3LL8,24090
|
|
38
|
+
elasticsearch/_async/client/query_rules.py,sha256=gdPhpPRAKZxKNTAfy1np4iTlWOEFMG28X1WJyIVwD20,14821
|
|
39
|
+
elasticsearch/_async/client/rollup.py,sha256=JRO7D5qpdaCel6xWHaS3cHErBYInzLnsHVzNilhIaAY,20828
|
|
40
|
+
elasticsearch/_async/client/search_application.py,sha256=f699vpX2Ma9uzyEaT6BtHzlky8QUMO7eH6x129Tctw4,15306
|
|
41
|
+
elasticsearch/_async/client/searchable_snapshots.py,sha256=NNWkJd861hrsMr6-xTv5qJGQcDfok0WRxeD3PFspWw4,11636
|
|
42
|
+
elasticsearch/_async/client/security.py,sha256=Uvc2xEwPrR7Y13N5cp05gsztBJm9ts5Fr32e5V8AuKI,151051
|
|
43
|
+
elasticsearch/_async/client/shutdown.py,sha256=VLUD0VL065THNNuXB4lrA66aAPb_v2WW5oJfJNlfJcs,11350
|
|
44
|
+
elasticsearch/_async/client/slm.py,sha256=OsxIVx_MFdegv0-EGBtGJuiKtdSkySmf88Mg-KhAsmo,16120
|
|
45
|
+
elasticsearch/_async/client/snapshot.py,sha256=Fyyx-LjjPqbcJ3CQ_JHqlydrXwUb4clVo7QHbDuMBsk,37029
|
|
46
|
+
elasticsearch/_async/client/sql.py,sha256=_HcuH6cNlaIz0HBqM_eoEQ1gj-e3XXaVhp8_ieNIx7w,17830
|
|
47
|
+
elasticsearch/_async/client/ssl.py,sha256=7CLG1TweMXYj1LCS2HhQgWTB190v4toiykjSVAmblto,2261
|
|
48
|
+
elasticsearch/_async/client/synonyms.py,sha256=Xp0RJCEU-AcUea2LGMKwQYSCFdyZrbPAaenGWi9yxWU,13851
|
|
49
|
+
elasticsearch/_async/client/tasks.py,sha256=LtoYpPBeYS-ZaIB4YPKqKuQsF6OD7avkTl21-ZKKxyc,9043
|
|
50
|
+
elasticsearch/_async/client/text_structure.py,sha256=Co6Tiso1sa_qJmXfcc3S9h0UcuiUV8VLnvBZHY5D5Vo,12046
|
|
51
|
+
elasticsearch/_async/client/transform.py,sha256=tAy4zfa84f0eqNenN2rQAToDW6ftNydXhXeOjyMjmsU,42181
|
|
52
|
+
elasticsearch/_async/client/utils.py,sha256=JwFOxo-YrRg4exXlpiUuOG1uNtJKP_VeK0HgrCJSN98,1367
|
|
53
|
+
elasticsearch/_async/client/watcher.py,sha256=Yybc7Kn4Q0qTTf6frYhfhQIDg3-AT8VTWLcu-irFEpQ,26482
|
|
54
|
+
elasticsearch/_async/client/xpack.py,sha256=yyRUufXjg1Yd9ehPPYQpeR2zlUHgUhq0QzJNxyw3CDo,4554
|
|
55
|
+
elasticsearch/_sync/__init__.py,sha256=TZps9WjF-TaSNzBvW5wUCgXRcbHnvE_9xAynBHsMtSo,787
|
|
56
|
+
elasticsearch/_sync/client/__init__.py,sha256=sLfUdta8NcG4Em4jb-50LVnck4EGL-hnKla2iaJR2vs,242812
|
|
57
|
+
elasticsearch/_sync/client/_base.py,sha256=LesRKQzvgstEPn-hzoY7PBq_4hAyPCzjGiUggGn-fB8,15461
|
|
58
|
+
elasticsearch/_sync/client/async_search.py,sha256=hCWz3xxSoQsYbP-b2j_0mrYcyoVLtdkwY6iR5psn-fU,30487
|
|
59
|
+
elasticsearch/_sync/client/autoscaling.py,sha256=x1aRaOw5ztEYmuzaiTPVyTrgL84eI1ta15MMv_bd2Fk,7693
|
|
60
|
+
elasticsearch/_sync/client/cat.py,sha256=4qegFQXRQX5p-Ncs62TEaF5fWLUdgbVWV2bF5-WKTdc,138385
|
|
61
|
+
elasticsearch/_sync/client/ccr.py,sha256=kOUErz201dJdqfubej10tHJ8z-_iB1LnL_gA-qBYbB0,36816
|
|
62
|
+
elasticsearch/_sync/client/cluster.py,sha256=0Bm2shIYq4_I4qTMhXZShR73ezStlFneWsSuh6HzFOs,50243
|
|
63
|
+
elasticsearch/_sync/client/connector.py,sha256=Mebrr1YifiQvNXfYwuKp71UKIU5FcJWsj_f_BaulZlU,57303
|
|
64
|
+
elasticsearch/_sync/client/dangling_indices.py,sha256=81dHvN6m6d3nyDaOm3O9T6zA3m9qE7PIm5RrNodjLAc,6898
|
|
65
|
+
elasticsearch/_sync/client/enrich.py,sha256=NPEY74siYR251SsfG_XrYKxASBOt8YMSWVVepFObRF4,9600
|
|
66
|
+
elasticsearch/_sync/client/eql.py,sha256=ySS7YNv9dhHfm0VpBdehNfd0dP6-7BdnEbbL0SfRlKA,13090
|
|
67
|
+
elasticsearch/_sync/client/esql.py,sha256=FZEsE1gV4Vs2uI8z30N3WYaUCYnC5tGe_bf5o3l3oFo,4557
|
|
68
|
+
elasticsearch/_sync/client/features.py,sha256=lW1iL9gtjCr9T6CwQftBh2yqlF9RqzD6A77MjyEP-Lk,3526
|
|
69
|
+
elasticsearch/_sync/client/fleet.py,sha256=hJU9MNjJL2b_BMVCKRl9vM-_KHV36Wx0wQR_CTcwoPY,31112
|
|
70
|
+
elasticsearch/_sync/client/graph.py,sha256=kcIhR9oUChXv56ZhYi1smf7uqPctw1zVA5HkqHyl1yU,4582
|
|
71
|
+
elasticsearch/_sync/client/ilm.py,sha256=RAqIvqPOAj1j9v6wxJrDu8wlOg6NVC-QV6sZpvZkf2U,23836
|
|
72
|
+
elasticsearch/_sync/client/indices.py,sha256=McDFznsgGQmMhrx71wqvmsCGnKPvlstiGj_w8_z-WBc,216316
|
|
73
|
+
elasticsearch/_sync/client/inference.py,sha256=Du0zu4NLBn5tlrg33yljtPmIKRRmbZ63vfKIKXj0hJc,12212
|
|
74
|
+
elasticsearch/_sync/client/ingest.py,sha256=AjXXs3gMPz4_8rYFoLsdemXA8YH-vl80e_TtCLQ5WrM,23249
|
|
75
|
+
elasticsearch/_sync/client/license.py,sha256=B_cnopns9c0bEnJeQtIBKaZ79srMfiN206MMw3ibOLE,12800
|
|
76
|
+
elasticsearch/_sync/client/logstash.py,sha256=ClY5jx7UYR5_sdxnanVCxEchUZKqxO6bJDB5JDdWHk0,6100
|
|
77
|
+
elasticsearch/_sync/client/migration.py,sha256=Mq5gzEqTZnyoviosqFuaYQDS6GlCIZP9npcd6T9nIEY,5295
|
|
78
|
+
elasticsearch/_sync/client/ml.py,sha256=CHJlGhFfShQJej7CXW_o-Fph3mbSH2Mqh9gGPbvZRJk,258082
|
|
79
|
+
elasticsearch/_sync/client/monitoring.py,sha256=VjEst2xeRbP2nUHfrmYYuTRZzZYggMwosS538rjnXLc,3806
|
|
80
|
+
elasticsearch/_sync/client/nodes.py,sha256=5P2pikLHHXb1ULPofYiyt4wO2Y7xyer2Pc91t6Rs79Y,24006
|
|
81
|
+
elasticsearch/_sync/client/query_rules.py,sha256=nuXojRIHKB-8yo_QIyR0DgMfZ3vroewnPBKs0T_JWBI,14737
|
|
82
|
+
elasticsearch/_sync/client/rollup.py,sha256=jdlkpD1B1eQoJcZEQ5TqrF9C8lZRvNTX_rP-JHgb4QU,20732
|
|
83
|
+
elasticsearch/_sync/client/search_application.py,sha256=m1lE1vSfAWwWapubDFQDsa6fQDXr6Ra3ziSCV82_ayQ,15210
|
|
84
|
+
elasticsearch/_sync/client/searchable_snapshots.py,sha256=1grNLwd7G6nNVSzWuFM43QUQdakyWIKG2-Y0O0j3pRU,11588
|
|
85
|
+
elasticsearch/_sync/client/security.py,sha256=0IFgj3LvvAVitqTjW-tPGBHyB_76grMFnlcx64WVNLM,150391
|
|
86
|
+
elasticsearch/_sync/client/shutdown.py,sha256=XmHwRxJTaETA7w2kc4i98WcMYGaQU04h-kXhMmgeSK0,11314
|
|
87
|
+
elasticsearch/_sync/client/slm.py,sha256=ALtxLp0IuTGdrrW4scuFedEwU_cx4YeblgqMgQGyDAo,16012
|
|
88
|
+
elasticsearch/_sync/client/snapshot.py,sha256=eToPd2PMiMYArXTRbL61gtC3U36CIZUYp8ci6c0qnvQ,36897
|
|
89
|
+
elasticsearch/_sync/client/sql.py,sha256=JeH49RlmMQXQL3ta4b4dqzwThz4WQn2YBxyHXPf7k1I,17758
|
|
90
|
+
elasticsearch/_sync/client/ssl.py,sha256=nfntq17En9-UbQNIRrahMc2nktOo3AdJfB2FFZwSBRM,2249
|
|
91
|
+
elasticsearch/_sync/client/synonyms.py,sha256=cjXwXUNUH4fCDp8j2j1JKDvZN9DAhEf4IXW_ImEWdX0,13767
|
|
92
|
+
elasticsearch/_sync/client/tasks.py,sha256=evkBejBfnn5nDGQoowM1v_DRtbKUNDDkJRD0ATWXJOg,9007
|
|
93
|
+
elasticsearch/_sync/client/text_structure.py,sha256=Kk1XwGBy_9sQmJIqea-GA60xF9XihrQWn57gvZcQzLM,12022
|
|
94
|
+
elasticsearch/_sync/client/transform.py,sha256=NJpbjvuBCz79COAcrLPgNopplVNrAzZgwLsI9Vj8Hcw,42049
|
|
95
|
+
elasticsearch/_sync/client/utils.py,sha256=QKgoK3f87YPa5R5v7_TN8ib8JircbfI_R5RQXeEOKiU,17209
|
|
96
|
+
elasticsearch/_sync/client/watcher.py,sha256=c9vdf8CxpMj1fJtZx1sdDyGHW8COlrwNL6OcyNUmhO8,26350
|
|
97
|
+
elasticsearch/_sync/client/xpack.py,sha256=_vmMqtwkPaSIIef7kxjjL4AsokR_TKTJffGd8OHmxX0,4530
|
|
98
|
+
elasticsearch/helpers/__init__.py,sha256=7X10XwdP_fP1QTHGcOxGbCvl2oBevkz_DjhjXCh_59I,1470
|
|
99
|
+
elasticsearch/helpers/actions.py,sha256=AytDZ2NXYGkgLdV36D6o38Vo13mGcVLmNpU4EnL3B6s,31860
|
|
100
|
+
elasticsearch/helpers/errors.py,sha256=GKtlM2687mbBC8PjwQGClBFE4sD129Ytb6wkHZveFJw,1213
|
|
101
|
+
elasticsearch/helpers/vectorstore/__init__.py,sha256=znQOANiaSZOJco_dkBf06wpFMKwK0OoDcNkkS8NMWKE,2192
|
|
102
|
+
elasticsearch/helpers/vectorstore/_utils.py,sha256=xJwCFq7sqUBeq143tfnfm3i4e-ta88s85wKZmPZwJWg,3985
|
|
103
|
+
elasticsearch/helpers/vectorstore/_async/__init__.py,sha256=TZps9WjF-TaSNzBvW5wUCgXRcbHnvE_9xAynBHsMtSo,787
|
|
104
|
+
elasticsearch/helpers/vectorstore/_async/_utils.py,sha256=wYlPKvAT4bflJjULLB2LMjJroAgX6tjoDGBPT6V1gj8,1608
|
|
105
|
+
elasticsearch/helpers/vectorstore/_async/embedding_service.py,sha256=Qv4HsPC4k6J00K4ajhJPFlET6fOTV-l74iDCr4dpZgc,3655
|
|
106
|
+
elasticsearch/helpers/vectorstore/_async/strategies.py,sha256=nh_wvNfWmZIjbTQ38FGSkUeF4_yDk48zukNuhOkq9bE,15322
|
|
107
|
+
elasticsearch/helpers/vectorstore/_async/vectorstore.py,sha256=U9xOnjLjJmLeT8dltKWYvsDD4jkmyH0ybfxR0Bn6-_Y,16707
|
|
108
|
+
elasticsearch/helpers/vectorstore/_sync/__init__.py,sha256=TZps9WjF-TaSNzBvW5wUCgXRcbHnvE_9xAynBHsMtSo,787
|
|
109
|
+
elasticsearch/helpers/vectorstore/_sync/_utils.py,sha256=5pdvNS5XC3wqShjliW9Njl9tVuyI9WMy0cxc5-97K-c,1569
|
|
110
|
+
elasticsearch/helpers/vectorstore/_sync/embedding_service.py,sha256=sAw_WKUcmyqOOJRqnNesZCzn7ZyA91v4NvvQszHIWJ8,3582
|
|
111
|
+
elasticsearch/helpers/vectorstore/_sync/strategies.py,sha256=0Q1zoOrO51S6HXjXwkAePPVtCUGQz5lKN9NyRCso-GU,15220
|
|
112
|
+
elasticsearch/helpers/vectorstore/_sync/vectorstore.py,sha256=bTWLhdGkdXHS4SojSFHHAuBTUUC3OBdiyDqgQmHC_sI,16510
|
|
113
|
+
elasticsearch-8.15.1.dist-info/METADATA,sha256=kjTAJcsIXQ-AAAmPY1eBW39S_d5-CeSC95MIIiM5zlo,8728
|
|
114
|
+
elasticsearch-8.15.1.dist-info/WHEEL,sha256=1yFddiXMmvYK7QYTqtRNtX66WJ0Mz8PYEiEUoOUUxRY,87
|
|
115
|
+
elasticsearch-8.15.1.dist-info/licenses/LICENSE,sha256=XfKg2H1sVi8OoRxoisUlMqoo10TKvHmU_wU39ks7MyA,10143
|
|
116
|
+
elasticsearch-8.15.1.dist-info/licenses/NOTICE,sha256=t4IjKAJ_G-0hYaL4AH16CVS_xDel8UXrJVK6x7JDaGA,61
|
|
117
|
+
elasticsearch-8.15.1.dist-info/RECORD,,
|
|
@@ -1,205 +0,0 @@
|
|
|
1
|
-
# Licensed to Elasticsearch B.V. under one or more contributor
|
|
2
|
-
# license agreements. See the NOTICE file distributed with
|
|
3
|
-
# this work for additional information regarding copyright
|
|
4
|
-
# ownership. Elasticsearch B.V. licenses this file to you under
|
|
5
|
-
# the Apache License, Version 2.0 (the "License"); you may
|
|
6
|
-
# not use this file except in compliance with the License.
|
|
7
|
-
# You may obtain a copy of the License at
|
|
8
|
-
#
|
|
9
|
-
# http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
-
#
|
|
11
|
-
# Unless required by applicable law or agreed to in writing,
|
|
12
|
-
# software distributed under the License is distributed on an
|
|
13
|
-
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
14
|
-
# KIND, either express or implied. See the License for the
|
|
15
|
-
# specific language governing permissions and limitations
|
|
16
|
-
# under the License.
|
|
17
|
-
|
|
18
|
-
import typing as t
|
|
19
|
-
|
|
20
|
-
from elastic_transport import ObjectApiResponse
|
|
21
|
-
|
|
22
|
-
from ._base import NamespacedClient
|
|
23
|
-
from .utils import SKIP_IN_PATH, _quote, _rewrite_parameters
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
class QueryRulesetClient(NamespacedClient):
|
|
27
|
-
|
|
28
|
-
@_rewrite_parameters()
|
|
29
|
-
async def delete(
|
|
30
|
-
self,
|
|
31
|
-
*,
|
|
32
|
-
ruleset_id: str,
|
|
33
|
-
error_trace: t.Optional[bool] = None,
|
|
34
|
-
filter_path: t.Optional[t.Union[str, t.Sequence[str]]] = None,
|
|
35
|
-
human: t.Optional[bool] = None,
|
|
36
|
-
pretty: t.Optional[bool] = None,
|
|
37
|
-
) -> ObjectApiResponse[t.Any]:
|
|
38
|
-
"""
|
|
39
|
-
Deletes a query ruleset.
|
|
40
|
-
|
|
41
|
-
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.14/delete-query-ruleset.html>`_
|
|
42
|
-
|
|
43
|
-
:param ruleset_id: The unique identifier of the query ruleset to delete
|
|
44
|
-
"""
|
|
45
|
-
if ruleset_id in SKIP_IN_PATH:
|
|
46
|
-
raise ValueError("Empty value passed for parameter 'ruleset_id'")
|
|
47
|
-
__path_parts: t.Dict[str, str] = {"ruleset_id": _quote(ruleset_id)}
|
|
48
|
-
__path = f'/_query_rules/{__path_parts["ruleset_id"]}'
|
|
49
|
-
__query: t.Dict[str, t.Any] = {}
|
|
50
|
-
if error_trace is not None:
|
|
51
|
-
__query["error_trace"] = error_trace
|
|
52
|
-
if filter_path is not None:
|
|
53
|
-
__query["filter_path"] = filter_path
|
|
54
|
-
if human is not None:
|
|
55
|
-
__query["human"] = human
|
|
56
|
-
if pretty is not None:
|
|
57
|
-
__query["pretty"] = pretty
|
|
58
|
-
__headers = {"accept": "application/json"}
|
|
59
|
-
return await self.perform_request( # type: ignore[return-value]
|
|
60
|
-
"DELETE",
|
|
61
|
-
__path,
|
|
62
|
-
params=__query,
|
|
63
|
-
headers=__headers,
|
|
64
|
-
endpoint_id="query_ruleset.delete",
|
|
65
|
-
path_parts=__path_parts,
|
|
66
|
-
)
|
|
67
|
-
|
|
68
|
-
@_rewrite_parameters()
|
|
69
|
-
async def get(
|
|
70
|
-
self,
|
|
71
|
-
*,
|
|
72
|
-
ruleset_id: str,
|
|
73
|
-
error_trace: t.Optional[bool] = None,
|
|
74
|
-
filter_path: t.Optional[t.Union[str, t.Sequence[str]]] = None,
|
|
75
|
-
human: t.Optional[bool] = None,
|
|
76
|
-
pretty: t.Optional[bool] = None,
|
|
77
|
-
) -> ObjectApiResponse[t.Any]:
|
|
78
|
-
"""
|
|
79
|
-
Returns the details about a query ruleset.
|
|
80
|
-
|
|
81
|
-
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.14/get-query-ruleset.html>`_
|
|
82
|
-
|
|
83
|
-
:param ruleset_id: The unique identifier of the query ruleset
|
|
84
|
-
"""
|
|
85
|
-
if ruleset_id in SKIP_IN_PATH:
|
|
86
|
-
raise ValueError("Empty value passed for parameter 'ruleset_id'")
|
|
87
|
-
__path_parts: t.Dict[str, str] = {"ruleset_id": _quote(ruleset_id)}
|
|
88
|
-
__path = f'/_query_rules/{__path_parts["ruleset_id"]}'
|
|
89
|
-
__query: t.Dict[str, t.Any] = {}
|
|
90
|
-
if error_trace is not None:
|
|
91
|
-
__query["error_trace"] = error_trace
|
|
92
|
-
if filter_path is not None:
|
|
93
|
-
__query["filter_path"] = filter_path
|
|
94
|
-
if human is not None:
|
|
95
|
-
__query["human"] = human
|
|
96
|
-
if pretty is not None:
|
|
97
|
-
__query["pretty"] = pretty
|
|
98
|
-
__headers = {"accept": "application/json"}
|
|
99
|
-
return await self.perform_request( # type: ignore[return-value]
|
|
100
|
-
"GET",
|
|
101
|
-
__path,
|
|
102
|
-
params=__query,
|
|
103
|
-
headers=__headers,
|
|
104
|
-
endpoint_id="query_ruleset.get",
|
|
105
|
-
path_parts=__path_parts,
|
|
106
|
-
)
|
|
107
|
-
|
|
108
|
-
@_rewrite_parameters(
|
|
109
|
-
parameter_aliases={"from": "from_"},
|
|
110
|
-
)
|
|
111
|
-
async def list(
|
|
112
|
-
self,
|
|
113
|
-
*,
|
|
114
|
-
error_trace: t.Optional[bool] = None,
|
|
115
|
-
filter_path: t.Optional[t.Union[str, t.Sequence[str]]] = None,
|
|
116
|
-
from_: t.Optional[int] = None,
|
|
117
|
-
human: t.Optional[bool] = None,
|
|
118
|
-
pretty: t.Optional[bool] = None,
|
|
119
|
-
size: t.Optional[int] = None,
|
|
120
|
-
) -> ObjectApiResponse[t.Any]:
|
|
121
|
-
"""
|
|
122
|
-
Lists query rulesets.
|
|
123
|
-
|
|
124
|
-
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.14/list-query-rulesets.html>`_
|
|
125
|
-
|
|
126
|
-
:param from_: Starting offset (default: 0)
|
|
127
|
-
:param size: specifies a max number of results to get
|
|
128
|
-
"""
|
|
129
|
-
__path_parts: t.Dict[str, str] = {}
|
|
130
|
-
__path = "/_query_rules"
|
|
131
|
-
__query: t.Dict[str, t.Any] = {}
|
|
132
|
-
if error_trace is not None:
|
|
133
|
-
__query["error_trace"] = error_trace
|
|
134
|
-
if filter_path is not None:
|
|
135
|
-
__query["filter_path"] = filter_path
|
|
136
|
-
if from_ is not None:
|
|
137
|
-
__query["from"] = from_
|
|
138
|
-
if human is not None:
|
|
139
|
-
__query["human"] = human
|
|
140
|
-
if pretty is not None:
|
|
141
|
-
__query["pretty"] = pretty
|
|
142
|
-
if size is not None:
|
|
143
|
-
__query["size"] = size
|
|
144
|
-
__headers = {"accept": "application/json"}
|
|
145
|
-
return await self.perform_request( # type: ignore[return-value]
|
|
146
|
-
"GET",
|
|
147
|
-
__path,
|
|
148
|
-
params=__query,
|
|
149
|
-
headers=__headers,
|
|
150
|
-
endpoint_id="query_ruleset.list",
|
|
151
|
-
path_parts=__path_parts,
|
|
152
|
-
)
|
|
153
|
-
|
|
154
|
-
@_rewrite_parameters(
|
|
155
|
-
body_fields=("rules",),
|
|
156
|
-
)
|
|
157
|
-
async def put(
|
|
158
|
-
self,
|
|
159
|
-
*,
|
|
160
|
-
ruleset_id: str,
|
|
161
|
-
rules: t.Optional[t.Sequence[t.Mapping[str, t.Any]]] = None,
|
|
162
|
-
error_trace: t.Optional[bool] = None,
|
|
163
|
-
filter_path: t.Optional[t.Union[str, t.Sequence[str]]] = None,
|
|
164
|
-
human: t.Optional[bool] = None,
|
|
165
|
-
pretty: t.Optional[bool] = None,
|
|
166
|
-
body: t.Optional[t.Dict[str, t.Any]] = None,
|
|
167
|
-
) -> ObjectApiResponse[t.Any]:
|
|
168
|
-
"""
|
|
169
|
-
Creates or updates a query ruleset.
|
|
170
|
-
|
|
171
|
-
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.14/put-query-ruleset.html>`_
|
|
172
|
-
|
|
173
|
-
:param ruleset_id: The unique identifier of the query ruleset to be created or
|
|
174
|
-
updated
|
|
175
|
-
:param rules:
|
|
176
|
-
"""
|
|
177
|
-
if ruleset_id in SKIP_IN_PATH:
|
|
178
|
-
raise ValueError("Empty value passed for parameter 'ruleset_id'")
|
|
179
|
-
if rules is None and body is None:
|
|
180
|
-
raise ValueError("Empty value passed for parameter 'rules'")
|
|
181
|
-
__path_parts: t.Dict[str, str] = {"ruleset_id": _quote(ruleset_id)}
|
|
182
|
-
__path = f'/_query_rules/{__path_parts["ruleset_id"]}'
|
|
183
|
-
__query: t.Dict[str, t.Any] = {}
|
|
184
|
-
__body: t.Dict[str, t.Any] = body if body is not None else {}
|
|
185
|
-
if error_trace is not None:
|
|
186
|
-
__query["error_trace"] = error_trace
|
|
187
|
-
if filter_path is not None:
|
|
188
|
-
__query["filter_path"] = filter_path
|
|
189
|
-
if human is not None:
|
|
190
|
-
__query["human"] = human
|
|
191
|
-
if pretty is not None:
|
|
192
|
-
__query["pretty"] = pretty
|
|
193
|
-
if not __body:
|
|
194
|
-
if rules is not None:
|
|
195
|
-
__body["rules"] = rules
|
|
196
|
-
__headers = {"accept": "application/json", "content-type": "application/json"}
|
|
197
|
-
return await self.perform_request( # type: ignore[return-value]
|
|
198
|
-
"PUT",
|
|
199
|
-
__path,
|
|
200
|
-
params=__query,
|
|
201
|
-
headers=__headers,
|
|
202
|
-
body=__body,
|
|
203
|
-
endpoint_id="query_ruleset.put",
|
|
204
|
-
path_parts=__path_parts,
|
|
205
|
-
)
|