elasticsearch 8.12.1__py3-none-any.whl → 8.13.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.
Files changed (105) hide show
  1. elasticsearch/__init__.py +7 -0
  2. elasticsearch/_async/client/__init__.py +477 -128
  3. elasticsearch/_async/client/_base.py +41 -1
  4. elasticsearch/_async/client/async_search.py +40 -12
  5. elasticsearch/_async/client/autoscaling.py +37 -11
  6. elasticsearch/_async/client/cat.py +260 -69
  7. elasticsearch/_async/client/ccr.py +123 -38
  8. elasticsearch/_async/client/cluster.py +153 -42
  9. elasticsearch/_async/client/dangling_indices.py +27 -8
  10. elasticsearch/_async/client/enrich.py +48 -14
  11. elasticsearch/_async/client/eql.py +38 -12
  12. elasticsearch/_async/client/esql.py +10 -2
  13. elasticsearch/_async/client/features.py +17 -4
  14. elasticsearch/_async/client/fleet.py +30 -7
  15. elasticsearch/_async/client/graph.py +11 -3
  16. elasticsearch/_async/client/ilm.py +101 -29
  17. elasticsearch/_async/client/indices.py +688 -181
  18. elasticsearch/_async/client/inference.py +111 -44
  19. elasticsearch/_async/client/ingest.py +59 -16
  20. elasticsearch/_async/client/license.py +58 -14
  21. elasticsearch/_async/client/logstash.py +31 -9
  22. elasticsearch/_async/client/migration.py +28 -7
  23. elasticsearch/_async/client/ml.py +781 -214
  24. elasticsearch/_async/client/monitoring.py +10 -2
  25. elasticsearch/_async/client/nodes.py +103 -29
  26. elasticsearch/_async/client/query_ruleset.py +37 -11
  27. elasticsearch/_async/client/rollup.py +79 -24
  28. elasticsearch/_async/client/search_application.py +76 -23
  29. elasticsearch/_async/client/searchable_snapshots.py +49 -12
  30. elasticsearch/_async/client/security.py +544 -143
  31. elasticsearch/_async/client/shutdown.py +28 -6
  32. elasticsearch/_async/client/slm.py +80 -22
  33. elasticsearch/_async/client/snapshot.py +140 -54
  34. elasticsearch/_async/client/sql.py +55 -15
  35. elasticsearch/_async/client/ssl.py +9 -2
  36. elasticsearch/_async/client/synonyms.py +75 -21
  37. elasticsearch/_async/client/tasks.py +29 -8
  38. elasticsearch/_async/client/text_structure.py +74 -2
  39. elasticsearch/_async/client/transform.py +106 -32
  40. elasticsearch/_async/client/watcher.py +110 -31
  41. elasticsearch/_async/client/xpack.py +16 -4
  42. elasticsearch/_async/helpers.py +1 -1
  43. elasticsearch/_otel.py +92 -0
  44. elasticsearch/_sync/client/__init__.py +477 -128
  45. elasticsearch/_sync/client/_base.py +41 -1
  46. elasticsearch/_sync/client/async_search.py +40 -12
  47. elasticsearch/_sync/client/autoscaling.py +37 -11
  48. elasticsearch/_sync/client/cat.py +260 -69
  49. elasticsearch/_sync/client/ccr.py +123 -38
  50. elasticsearch/_sync/client/cluster.py +153 -42
  51. elasticsearch/_sync/client/dangling_indices.py +27 -8
  52. elasticsearch/_sync/client/enrich.py +48 -14
  53. elasticsearch/_sync/client/eql.py +38 -12
  54. elasticsearch/_sync/client/esql.py +10 -2
  55. elasticsearch/_sync/client/features.py +17 -4
  56. elasticsearch/_sync/client/fleet.py +30 -7
  57. elasticsearch/_sync/client/graph.py +11 -3
  58. elasticsearch/_sync/client/ilm.py +101 -29
  59. elasticsearch/_sync/client/indices.py +688 -181
  60. elasticsearch/_sync/client/inference.py +111 -44
  61. elasticsearch/_sync/client/ingest.py +59 -16
  62. elasticsearch/_sync/client/license.py +58 -14
  63. elasticsearch/_sync/client/logstash.py +31 -9
  64. elasticsearch/_sync/client/migration.py +28 -7
  65. elasticsearch/_sync/client/ml.py +781 -214
  66. elasticsearch/_sync/client/monitoring.py +10 -2
  67. elasticsearch/_sync/client/nodes.py +103 -29
  68. elasticsearch/_sync/client/query_ruleset.py +37 -11
  69. elasticsearch/_sync/client/rollup.py +79 -24
  70. elasticsearch/_sync/client/search_application.py +76 -23
  71. elasticsearch/_sync/client/searchable_snapshots.py +49 -12
  72. elasticsearch/_sync/client/security.py +544 -143
  73. elasticsearch/_sync/client/shutdown.py +28 -6
  74. elasticsearch/_sync/client/slm.py +80 -22
  75. elasticsearch/_sync/client/snapshot.py +140 -54
  76. elasticsearch/_sync/client/sql.py +55 -15
  77. elasticsearch/_sync/client/ssl.py +9 -2
  78. elasticsearch/_sync/client/synonyms.py +75 -21
  79. elasticsearch/_sync/client/tasks.py +29 -8
  80. elasticsearch/_sync/client/text_structure.py +74 -2
  81. elasticsearch/_sync/client/transform.py +106 -32
  82. elasticsearch/_sync/client/watcher.py +110 -31
  83. elasticsearch/_sync/client/xpack.py +16 -4
  84. elasticsearch/_version.py +1 -1
  85. elasticsearch/helpers/actions.py +1 -1
  86. elasticsearch/helpers/vectorstore/__init__.py +62 -0
  87. elasticsearch/helpers/vectorstore/_async/__init__.py +16 -0
  88. elasticsearch/helpers/vectorstore/_async/_utils.py +39 -0
  89. elasticsearch/helpers/vectorstore/_async/embedding_service.py +89 -0
  90. elasticsearch/helpers/vectorstore/_async/strategies.py +466 -0
  91. elasticsearch/helpers/vectorstore/_async/vectorstore.py +391 -0
  92. elasticsearch/helpers/vectorstore/_sync/__init__.py +16 -0
  93. elasticsearch/helpers/vectorstore/_sync/_utils.py +39 -0
  94. elasticsearch/helpers/vectorstore/_sync/embedding_service.py +89 -0
  95. elasticsearch/helpers/vectorstore/_sync/strategies.py +466 -0
  96. elasticsearch/helpers/vectorstore/_sync/vectorstore.py +388 -0
  97. elasticsearch/helpers/vectorstore/_utils.py +116 -0
  98. elasticsearch/serializer.py +14 -0
  99. {elasticsearch-8.12.1.dist-info → elasticsearch-8.13.1.dist-info}/METADATA +28 -8
  100. elasticsearch-8.13.1.dist-info/RECORD +116 -0
  101. {elasticsearch-8.12.1.dist-info → elasticsearch-8.13.1.dist-info}/WHEEL +1 -1
  102. elasticsearch-8.12.1.dist-info/RECORD +0 -103
  103. {elasticsearch-8.12.1.dist-info → elasticsearch-8.13.1.dist-info}/LICENSE +0 -0
  104. {elasticsearch-8.12.1.dist-info → elasticsearch-8.13.1.dist-info}/NOTICE +0 -0
  105. {elasticsearch-8.12.1.dist-info → elasticsearch-8.13.1.dist-info}/top_level.txt +0 -0
@@ -24,6 +24,7 @@ from .utils import SKIP_IN_PATH, _quote, _rewrite_parameters
24
24
 
25
25
 
26
26
  class LogstashClient(NamespacedClient):
27
+
27
28
  @_rewrite_parameters()
28
29
  async def delete_pipeline(
29
30
  self,
@@ -37,13 +38,14 @@ class LogstashClient(NamespacedClient):
37
38
  """
38
39
  Deletes Logstash Pipelines used by Central Management
39
40
 
40
- `<https://www.elastic.co/guide/en/elasticsearch/reference/8.12/logstash-api-delete-pipeline.html>`_
41
+ `<https://www.elastic.co/guide/en/elasticsearch/reference/8.13/logstash-api-delete-pipeline.html>`_
41
42
 
42
43
  :param id: Identifier for the pipeline.
43
44
  """
44
45
  if id in SKIP_IN_PATH:
45
46
  raise ValueError("Empty value passed for parameter 'id'")
46
- __path = f"/_logstash/pipeline/{_quote(id)}"
47
+ __path_parts: t.Dict[str, str] = {"id": _quote(id)}
48
+ __path = f'/_logstash/pipeline/{__path_parts["id"]}'
47
49
  __query: t.Dict[str, t.Any] = {}
48
50
  if error_trace is not None:
49
51
  __query["error_trace"] = error_trace
@@ -55,7 +57,12 @@ class LogstashClient(NamespacedClient):
55
57
  __query["pretty"] = pretty
56
58
  __headers = {"accept": "application/json"}
57
59
  return await self.perform_request( # type: ignore[return-value]
58
- "DELETE", __path, params=__query, headers=__headers
60
+ "DELETE",
61
+ __path,
62
+ params=__query,
63
+ headers=__headers,
64
+ endpoint_id="logstash.delete_pipeline",
65
+ path_parts=__path_parts,
59
66
  )
60
67
 
61
68
  @_rewrite_parameters()
@@ -71,13 +78,16 @@ class LogstashClient(NamespacedClient):
71
78
  """
72
79
  Retrieves Logstash Pipelines used by Central Management
73
80
 
74
- `<https://www.elastic.co/guide/en/elasticsearch/reference/8.12/logstash-api-get-pipeline.html>`_
81
+ `<https://www.elastic.co/guide/en/elasticsearch/reference/8.13/logstash-api-get-pipeline.html>`_
75
82
 
76
83
  :param id: Comma-separated list of pipeline identifiers.
77
84
  """
85
+ __path_parts: t.Dict[str, str]
78
86
  if id not in SKIP_IN_PATH:
79
- __path = f"/_logstash/pipeline/{_quote(id)}"
87
+ __path_parts = {"id": _quote(id)}
88
+ __path = f'/_logstash/pipeline/{__path_parts["id"]}'
80
89
  else:
90
+ __path_parts = {}
81
91
  __path = "/_logstash/pipeline"
82
92
  __query: t.Dict[str, t.Any] = {}
83
93
  if error_trace is not None:
@@ -90,7 +100,12 @@ class LogstashClient(NamespacedClient):
90
100
  __query["pretty"] = pretty
91
101
  __headers = {"accept": "application/json"}
92
102
  return await self.perform_request( # type: ignore[return-value]
93
- "GET", __path, params=__query, headers=__headers
103
+ "GET",
104
+ __path,
105
+ params=__query,
106
+ headers=__headers,
107
+ endpoint_id="logstash.get_pipeline",
108
+ path_parts=__path_parts,
94
109
  )
95
110
 
96
111
  @_rewrite_parameters(
@@ -110,7 +125,7 @@ class LogstashClient(NamespacedClient):
110
125
  """
111
126
  Adds and updates Logstash Pipelines used for Central Management
112
127
 
113
- `<https://www.elastic.co/guide/en/elasticsearch/reference/8.12/logstash-api-put-pipeline.html>`_
128
+ `<https://www.elastic.co/guide/en/elasticsearch/reference/8.13/logstash-api-put-pipeline.html>`_
114
129
 
115
130
  :param id: Identifier for the pipeline.
116
131
  :param pipeline:
@@ -123,7 +138,8 @@ class LogstashClient(NamespacedClient):
123
138
  )
124
139
  elif pipeline is not None and body is not None:
125
140
  raise ValueError("Cannot set both 'pipeline' and 'body'")
126
- __path = f"/_logstash/pipeline/{_quote(id)}"
141
+ __path_parts: t.Dict[str, str] = {"id": _quote(id)}
142
+ __path = f'/_logstash/pipeline/{__path_parts["id"]}'
127
143
  __query: t.Dict[str, t.Any] = {}
128
144
  if error_trace is not None:
129
145
  __query["error_trace"] = error_trace
@@ -136,5 +152,11 @@ class LogstashClient(NamespacedClient):
136
152
  __body = pipeline if pipeline is not None else body
137
153
  __headers = {"accept": "application/json", "content-type": "application/json"}
138
154
  return await self.perform_request( # type: ignore[return-value]
139
- "PUT", __path, params=__query, headers=__headers, body=__body
155
+ "PUT",
156
+ __path,
157
+ params=__query,
158
+ headers=__headers,
159
+ body=__body,
160
+ endpoint_id="logstash.put_pipeline",
161
+ path_parts=__path_parts,
140
162
  )
@@ -24,6 +24,7 @@ from .utils import SKIP_IN_PATH, _quote, _rewrite_parameters
24
24
 
25
25
 
26
26
  class MigrationClient(NamespacedClient):
27
+
27
28
  @_rewrite_parameters()
28
29
  async def deprecations(
29
30
  self,
@@ -39,14 +40,17 @@ class MigrationClient(NamespacedClient):
39
40
  that use deprecated features that will be removed or changed in the next major
40
41
  version.
41
42
 
42
- `<https://www.elastic.co/guide/en/elasticsearch/reference/8.12/migration-api-deprecation.html>`_
43
+ `<https://www.elastic.co/guide/en/elasticsearch/reference/8.13/migration-api-deprecation.html>`_
43
44
 
44
45
  :param index: Comma-separate list of data streams or indices to check. Wildcard
45
46
  (*) expressions are supported.
46
47
  """
48
+ __path_parts: t.Dict[str, str]
47
49
  if index not in SKIP_IN_PATH:
48
- __path = f"/{_quote(index)}/_migration/deprecations"
50
+ __path_parts = {"index": _quote(index)}
51
+ __path = f'/{__path_parts["index"]}/_migration/deprecations'
49
52
  else:
53
+ __path_parts = {}
50
54
  __path = "/_migration/deprecations"
51
55
  __query: t.Dict[str, t.Any] = {}
52
56
  if error_trace is not None:
@@ -59,7 +63,12 @@ class MigrationClient(NamespacedClient):
59
63
  __query["pretty"] = pretty
60
64
  __headers = {"accept": "application/json"}
61
65
  return await self.perform_request( # type: ignore[return-value]
62
- "GET", __path, params=__query, headers=__headers
66
+ "GET",
67
+ __path,
68
+ params=__query,
69
+ headers=__headers,
70
+ endpoint_id="migration.deprecations",
71
+ path_parts=__path_parts,
63
72
  )
64
73
 
65
74
  @_rewrite_parameters()
@@ -74,8 +83,9 @@ class MigrationClient(NamespacedClient):
74
83
  """
75
84
  Find out whether system features need to be upgraded or not
76
85
 
77
- `<https://www.elastic.co/guide/en/elasticsearch/reference/8.12/migration-api-feature-upgrade.html>`_
86
+ `<https://www.elastic.co/guide/en/elasticsearch/reference/8.13/migration-api-feature-upgrade.html>`_
78
87
  """
88
+ __path_parts: t.Dict[str, str] = {}
79
89
  __path = "/_migration/system_features"
80
90
  __query: t.Dict[str, t.Any] = {}
81
91
  if error_trace is not None:
@@ -88,7 +98,12 @@ class MigrationClient(NamespacedClient):
88
98
  __query["pretty"] = pretty
89
99
  __headers = {"accept": "application/json"}
90
100
  return await self.perform_request( # type: ignore[return-value]
91
- "GET", __path, params=__query, headers=__headers
101
+ "GET",
102
+ __path,
103
+ params=__query,
104
+ headers=__headers,
105
+ endpoint_id="migration.get_feature_upgrade_status",
106
+ path_parts=__path_parts,
92
107
  )
93
108
 
94
109
  @_rewrite_parameters()
@@ -103,8 +118,9 @@ class MigrationClient(NamespacedClient):
103
118
  """
104
119
  Begin upgrades for system features
105
120
 
106
- `<https://www.elastic.co/guide/en/elasticsearch/reference/8.12/migration-api-feature-upgrade.html>`_
121
+ `<https://www.elastic.co/guide/en/elasticsearch/reference/8.13/migration-api-feature-upgrade.html>`_
107
122
  """
123
+ __path_parts: t.Dict[str, str] = {}
108
124
  __path = "/_migration/system_features"
109
125
  __query: t.Dict[str, t.Any] = {}
110
126
  if error_trace is not None:
@@ -117,5 +133,10 @@ class MigrationClient(NamespacedClient):
117
133
  __query["pretty"] = pretty
118
134
  __headers = {"accept": "application/json"}
119
135
  return await self.perform_request( # type: ignore[return-value]
120
- "POST", __path, params=__query, headers=__headers
136
+ "POST",
137
+ __path,
138
+ params=__query,
139
+ headers=__headers,
140
+ endpoint_id="migration.post_feature_upgrade",
141
+ path_parts=__path_parts,
121
142
  )