elasticsearch 8.17.0__py3-none-any.whl → 8.17.2__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 (95) hide show
  1. elasticsearch/__init__.py +2 -2
  2. elasticsearch/_async/client/__init__.py +2034 -740
  3. elasticsearch/_async/client/async_search.py +33 -22
  4. elasticsearch/_async/client/autoscaling.py +27 -21
  5. elasticsearch/_async/client/cat.py +280 -336
  6. elasticsearch/_async/client/ccr.py +96 -70
  7. elasticsearch/_async/client/cluster.py +152 -144
  8. elasticsearch/_async/client/connector.py +488 -55
  9. elasticsearch/_async/client/dangling_indices.py +22 -16
  10. elasticsearch/_async/client/enrich.py +25 -6
  11. elasticsearch/_async/client/eql.py +22 -9
  12. elasticsearch/_async/client/esql.py +295 -3
  13. elasticsearch/_async/client/features.py +25 -25
  14. elasticsearch/_async/client/fleet.py +15 -9
  15. elasticsearch/_async/client/graph.py +9 -8
  16. elasticsearch/_async/client/ilm.py +91 -61
  17. elasticsearch/_async/client/indices.py +746 -324
  18. elasticsearch/_async/client/inference.py +101 -4
  19. elasticsearch/_async/client/ingest.py +231 -19
  20. elasticsearch/_async/client/license.py +48 -31
  21. elasticsearch/_async/client/logstash.py +20 -6
  22. elasticsearch/_async/client/migration.py +25 -7
  23. elasticsearch/_async/client/ml.py +532 -278
  24. elasticsearch/_async/client/monitoring.py +5 -1
  25. elasticsearch/_async/client/nodes.py +46 -30
  26. elasticsearch/_async/client/query_rules.py +65 -18
  27. elasticsearch/_async/client/rollup.py +126 -13
  28. elasticsearch/_async/client/search_application.py +170 -13
  29. elasticsearch/_async/client/searchable_snapshots.py +45 -23
  30. elasticsearch/_async/client/security.py +1299 -340
  31. elasticsearch/_async/client/shutdown.py +43 -15
  32. elasticsearch/_async/client/simulate.py +145 -0
  33. elasticsearch/_async/client/slm.py +163 -19
  34. elasticsearch/_async/client/snapshot.py +288 -23
  35. elasticsearch/_async/client/sql.py +94 -53
  36. elasticsearch/_async/client/ssl.py +16 -17
  37. elasticsearch/_async/client/synonyms.py +67 -26
  38. elasticsearch/_async/client/tasks.py +103 -28
  39. elasticsearch/_async/client/text_structure.py +475 -46
  40. elasticsearch/_async/client/transform.py +108 -72
  41. elasticsearch/_async/client/watcher.py +245 -43
  42. elasticsearch/_async/client/xpack.py +20 -6
  43. elasticsearch/_async/helpers.py +1 -1
  44. elasticsearch/_sync/client/__init__.py +2034 -740
  45. elasticsearch/_sync/client/async_search.py +33 -22
  46. elasticsearch/_sync/client/autoscaling.py +27 -21
  47. elasticsearch/_sync/client/cat.py +280 -336
  48. elasticsearch/_sync/client/ccr.py +96 -70
  49. elasticsearch/_sync/client/cluster.py +152 -144
  50. elasticsearch/_sync/client/connector.py +488 -55
  51. elasticsearch/_sync/client/dangling_indices.py +22 -16
  52. elasticsearch/_sync/client/enrich.py +25 -6
  53. elasticsearch/_sync/client/eql.py +22 -9
  54. elasticsearch/_sync/client/esql.py +295 -3
  55. elasticsearch/_sync/client/features.py +25 -25
  56. elasticsearch/_sync/client/fleet.py +15 -9
  57. elasticsearch/_sync/client/graph.py +9 -8
  58. elasticsearch/_sync/client/ilm.py +91 -61
  59. elasticsearch/_sync/client/indices.py +746 -324
  60. elasticsearch/_sync/client/inference.py +101 -4
  61. elasticsearch/_sync/client/ingest.py +231 -19
  62. elasticsearch/_sync/client/license.py +48 -31
  63. elasticsearch/_sync/client/logstash.py +20 -6
  64. elasticsearch/_sync/client/migration.py +25 -7
  65. elasticsearch/_sync/client/ml.py +532 -278
  66. elasticsearch/_sync/client/monitoring.py +5 -1
  67. elasticsearch/_sync/client/nodes.py +46 -30
  68. elasticsearch/_sync/client/query_rules.py +65 -18
  69. elasticsearch/_sync/client/rollup.py +126 -13
  70. elasticsearch/_sync/client/search_application.py +170 -13
  71. elasticsearch/_sync/client/searchable_snapshots.py +45 -23
  72. elasticsearch/_sync/client/security.py +1299 -340
  73. elasticsearch/_sync/client/shutdown.py +43 -15
  74. elasticsearch/_sync/client/simulate.py +145 -0
  75. elasticsearch/_sync/client/slm.py +163 -19
  76. elasticsearch/_sync/client/snapshot.py +288 -23
  77. elasticsearch/_sync/client/sql.py +94 -53
  78. elasticsearch/_sync/client/ssl.py +16 -17
  79. elasticsearch/_sync/client/synonyms.py +67 -26
  80. elasticsearch/_sync/client/tasks.py +103 -28
  81. elasticsearch/_sync/client/text_structure.py +475 -46
  82. elasticsearch/_sync/client/transform.py +108 -72
  83. elasticsearch/_sync/client/utils.py +1 -1
  84. elasticsearch/_sync/client/watcher.py +245 -43
  85. elasticsearch/_sync/client/xpack.py +20 -6
  86. elasticsearch/_version.py +1 -1
  87. elasticsearch/client.py +4 -0
  88. elasticsearch/helpers/actions.py +1 -1
  89. elasticsearch/helpers/vectorstore/_sync/vectorstore.py +4 -1
  90. {elasticsearch-8.17.0.dist-info → elasticsearch-8.17.2.dist-info}/METADATA +1 -1
  91. elasticsearch-8.17.2.dist-info/RECORD +119 -0
  92. elasticsearch-8.17.0.dist-info/RECORD +0 -117
  93. {elasticsearch-8.17.0.dist-info → elasticsearch-8.17.2.dist-info}/WHEEL +0 -0
  94. {elasticsearch-8.17.0.dist-info → elasticsearch-8.17.2.dist-info}/licenses/LICENSE +0 -0
  95. {elasticsearch-8.17.0.dist-info → elasticsearch-8.17.2.dist-info}/licenses/NOTICE +0 -0
@@ -39,7 +39,11 @@ class TransformClient(NamespacedClient):
39
39
  timeout: t.Optional[t.Union[str, t.Literal[-1], t.Literal[0]]] = None,
40
40
  ) -> ObjectApiResponse[t.Any]:
41
41
  """
42
- Delete a transform. Deletes a transform.
42
+ .. raw:: html
43
+
44
+ <p>Delete a transform.
45
+ Deletes a transform.</p>
46
+
43
47
 
44
48
  `<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/delete-transform.html>`_
45
49
 
@@ -99,7 +103,11 @@ class TransformClient(NamespacedClient):
99
103
  size: t.Optional[int] = None,
100
104
  ) -> ObjectApiResponse[t.Any]:
101
105
  """
102
- Get transforms. Retrieves configuration information for transforms.
106
+ .. raw:: html
107
+
108
+ <p>Get transforms.
109
+ Retrieves configuration information for transforms.</p>
110
+
103
111
 
104
112
  `<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/get-transform.html>`_
105
113
 
@@ -168,7 +176,11 @@ class TransformClient(NamespacedClient):
168
176
  timeout: t.Optional[t.Union[str, t.Literal[-1], t.Literal[0]]] = None,
169
177
  ) -> ObjectApiResponse[t.Any]:
170
178
  """
171
- Get transform stats. Retrieves usage information for transforms.
179
+ .. raw:: html
180
+
181
+ <p>Get transform stats.
182
+ Retrieves usage information for transforms.</p>
183
+
172
184
 
173
185
  `<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/get-transform-stats.html>`_
174
186
 
@@ -249,12 +261,14 @@ class TransformClient(NamespacedClient):
249
261
  body: t.Optional[t.Dict[str, t.Any]] = None,
250
262
  ) -> ObjectApiResponse[t.Any]:
251
263
  """
252
- Preview a transform. Generates a preview of the results that you will get when
253
- you create a transform with the same configuration. It returns a maximum of 100
254
- results. The calculations are based on all the current data in the source index.
255
- It also generates a list of mappings and settings for the destination index.
256
- These values are determined based on the field types of the source index and
257
- the transform aggregations.
264
+ .. raw:: html
265
+
266
+ <p>Preview a transform.
267
+ Generates a preview of the results that you will get when you create a transform with the same configuration.</p>
268
+ <p>It returns a maximum of 100 results. The calculations are based on all the current data in the source index. It also
269
+ generates a list of mappings and settings for the destination index. These values are determined based on the field
270
+ types of the source index and the transform aggregations.</p>
271
+
258
272
 
259
273
  `<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/preview-transform.html>`_
260
274
 
@@ -371,27 +385,27 @@ class TransformClient(NamespacedClient):
371
385
  body: t.Optional[t.Dict[str, t.Any]] = None,
372
386
  ) -> ObjectApiResponse[t.Any]:
373
387
  """
374
- Create a transform. Creates a transform. A transform copies data from source
375
- indices, transforms it, and persists it into an entity-centric destination index.
376
- You can also think of the destination index as a two-dimensional tabular data
377
- structure (known as a data frame). The ID for each document in the data frame
378
- is generated from a hash of the entity, so there is a unique row per entity.
379
- You must choose either the latest or pivot method for your transform; you cannot
380
- use both in a single transform. If you choose to use the pivot method for your
381
- transform, the entities are defined by the set of `group_by` fields in the pivot
382
- object. If you choose to use the latest method, the entities are defined by the
383
- `unique_key` field values in the latest object. You must have `create_index`,
384
- `index`, and `read` privileges on the destination index and `read` and `view_index_metadata`
385
- privileges on the source indices. When Elasticsearch security features are enabled,
386
- the transform remembers which roles the user that created it had at the time
387
- of creation and uses those same roles. If those roles do not have the required
388
- privileges on the source and destination indices, the transform fails when it
389
- attempts unauthorized operations. NOTE: You must use Kibana or this API to create
390
- a transform. Do not add a transform directly into any `.transform-internal*`
391
- indices using the Elasticsearch index API. If Elasticsearch security features
392
- are enabled, do not give users any privileges on `.transform-internal*` indices.
393
- If you used transforms prior to 7.5, also do not give users any privileges on
394
- `.data-frame-internal*` indices.
388
+ .. raw:: html
389
+
390
+ <p>Create a transform.
391
+ Creates a transform.</p>
392
+ <p>A transform copies data from source indices, transforms it, and persists it into an entity-centric destination index. You can also think of the destination index as a two-dimensional tabular data structure (known as
393
+ a data frame). The ID for each document in the data frame is generated from a hash of the entity, so there is a
394
+ unique row per entity.</p>
395
+ <p>You must choose either the latest or pivot method for your transform; you cannot use both in a single transform. If
396
+ you choose to use the pivot method for your transform, the entities are defined by the set of <code>group_by</code> fields in
397
+ the pivot object. If you choose to use the latest method, the entities are defined by the <code>unique_key</code> field values
398
+ in the latest object.</p>
399
+ <p>You must have <code>create_index</code>, <code>index</code>, and <code>read</code> privileges on the destination index and <code>read</code> and
400
+ <code>view_index_metadata</code> privileges on the source indices. When Elasticsearch security features are enabled, the
401
+ transform remembers which roles the user that created it had at the time of creation and uses those same roles. If
402
+ those roles do not have the required privileges on the source and destination indices, the transform fails when it
403
+ attempts unauthorized operations.</p>
404
+ <p>NOTE: You must use Kibana or this API to create a transform. Do not add a transform directly into any
405
+ <code>.transform-internal*</code> indices using the Elasticsearch index API. If Elasticsearch security features are enabled, do
406
+ not give users any privileges on <code>.transform-internal*</code> indices. If you used transforms prior to 7.5, also do not
407
+ give users any privileges on <code>.data-frame-internal*</code> indices.</p>
408
+
395
409
 
396
410
  `<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/put-transform.html>`_
397
411
 
@@ -491,9 +505,13 @@ class TransformClient(NamespacedClient):
491
505
  pretty: t.Optional[bool] = None,
492
506
  ) -> ObjectApiResponse[t.Any]:
493
507
  """
494
- Reset a transform. Resets a transform. Before you can reset it, you must stop
495
- it; alternatively, use the `force` query parameter. If the destination index
496
- was created by the transform, it is deleted.
508
+ .. raw:: html
509
+
510
+ <p>Reset a transform.
511
+ Resets a transform.
512
+ Before you can reset it, you must stop it; alternatively, use the <code>force</code> query parameter.
513
+ If the destination index was created by the transform, it is deleted.</p>
514
+
497
515
 
498
516
  `<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/reset-transform.html>`_
499
517
 
@@ -541,11 +559,15 @@ class TransformClient(NamespacedClient):
541
559
  timeout: t.Optional[t.Union[str, t.Literal[-1], t.Literal[0]]] = None,
542
560
  ) -> ObjectApiResponse[t.Any]:
543
561
  """
544
- Schedule a transform to start now. Instantly runs a transform to process data.
545
- If you _schedule_now a transform, it will process the new data instantly, without
546
- waiting for the configured frequency interval. After _schedule_now API is called,
547
- the transform will be processed again at now + frequency unless _schedule_now
548
- API is called again in the meantime.
562
+ .. raw:: html
563
+
564
+ <p>Schedule a transform to start now.
565
+ Instantly runs a transform to process data.</p>
566
+ <p>If you _schedule_now a transform, it will process the new data instantly,
567
+ without waiting for the configured frequency interval. After _schedule_now API is called,
568
+ the transform will be processed again at now + frequency unless _schedule_now API
569
+ is called again in the meantime.</p>
570
+
549
571
 
550
572
  `<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/schedule-now-transform.html>`_
551
573
 
@@ -592,24 +614,24 @@ class TransformClient(NamespacedClient):
592
614
  timeout: t.Optional[t.Union[str, t.Literal[-1], t.Literal[0]]] = None,
593
615
  ) -> ObjectApiResponse[t.Any]:
594
616
  """
595
- Start a transform. Starts a transform. When you start a transform, it creates
596
- the destination index if it does not already exist. The `number_of_shards` is
597
- set to `1` and the `auto_expand_replicas` is set to `0-1`. If it is a pivot transform,
598
- it deduces the mapping definitions for the destination index from the source
599
- indices and the transform aggregations. If fields in the destination index are
600
- derived from scripts (as in the case of `scripted_metric` or `bucket_script`
601
- aggregations), the transform uses dynamic mappings unless an index template exists.
602
- If it is a latest transform, it does not deduce mapping definitions; it uses
603
- dynamic mappings. To use explicit mappings, create the destination index before
604
- you start the transform. Alternatively, you can create an index template, though
605
- it does not affect the deduced mappings in a pivot transform. When the transform
606
- starts, a series of validations occur to ensure its success. If you deferred
607
- validation when you created the transform, they occur when you start the transform—​with
608
- the exception of privilege checks. When Elasticsearch security features are enabled,
609
- the transform remembers which roles the user that created it had at the time
610
- of creation and uses those same roles. If those roles do not have the required
611
- privileges on the source and destination indices, the transform fails when it
612
- attempts unauthorized operations.
617
+ .. raw:: html
618
+
619
+ <p>Start a transform.
620
+ Starts a transform.</p>
621
+ <p>When you start a transform, it creates the destination index if it does not already exist. The <code>number_of_shards</code> is
622
+ set to <code>1</code> and the <code>auto_expand_replicas</code> is set to <code>0-1</code>. If it is a pivot transform, it deduces the mapping
623
+ definitions for the destination index from the source indices and the transform aggregations. If fields in the
624
+ destination index are derived from scripts (as in the case of <code>scripted_metric</code> or <code>bucket_script</code> aggregations),
625
+ the transform uses dynamic mappings unless an index template exists. If it is a latest transform, it does not deduce
626
+ mapping definitions; it uses dynamic mappings. To use explicit mappings, create the destination index before you
627
+ start the transform. Alternatively, you can create an index template, though it does not affect the deduced mappings
628
+ in a pivot transform.</p>
629
+ <p>When the transform starts, a series of validations occur to ensure its success. If you deferred validation when you
630
+ created the transform, they occur when you start the transform—​with the exception of privilege checks. When
631
+ Elasticsearch security features are enabled, the transform remembers which roles the user that created it had at the
632
+ time of creation and uses those same roles. If those roles do not have the required privileges on the source and
633
+ destination indices, the transform fails when it attempts unauthorized operations.</p>
634
+
613
635
 
614
636
  `<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/start-transform.html>`_
615
637
 
@@ -663,7 +685,11 @@ class TransformClient(NamespacedClient):
663
685
  wait_for_completion: t.Optional[bool] = None,
664
686
  ) -> ObjectApiResponse[t.Any]:
665
687
  """
666
- Stop transforms. Stops one or more transforms.
688
+ .. raw:: html
689
+
690
+ <p>Stop transforms.
691
+ Stops one or more transforms.</p>
692
+
667
693
 
668
694
  `<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/stop-transform.html>`_
669
695
 
@@ -756,14 +782,16 @@ class TransformClient(NamespacedClient):
756
782
  body: t.Optional[t.Dict[str, t.Any]] = None,
757
783
  ) -> ObjectApiResponse[t.Any]:
758
784
  """
759
- Update a transform. Updates certain properties of a transform. All updated properties
760
- except `description` do not take effect until after the transform starts the
761
- next checkpoint, thus there is data consistency in each checkpoint. To use this
762
- API, you must have `read` and `view_index_metadata` privileges for the source
763
- indices. You must also have `index` and `read` privileges for the destination
764
- index. When Elasticsearch security features are enabled, the transform remembers
765
- which roles the user who updated it had at the time of update and runs with those
766
- privileges.
785
+ .. raw:: html
786
+
787
+ <p>Update a transform.
788
+ Updates certain properties of a transform.</p>
789
+ <p>All updated properties except <code>description</code> do not take effect until after the transform starts the next checkpoint,
790
+ thus there is data consistency in each checkpoint. To use this API, you must have <code>read</code> and <code>view_index_metadata</code>
791
+ privileges for the source indices. You must also have <code>index</code> and <code>read</code> privileges for the destination index. When
792
+ Elasticsearch security features are enabled, the transform remembers which roles the user who updated it had at the
793
+ time of update and runs with those privileges.</p>
794
+
767
795
 
768
796
  `<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/update-transform.html>`_
769
797
 
@@ -844,13 +872,21 @@ class TransformClient(NamespacedClient):
844
872
  timeout: t.Optional[t.Union[str, t.Literal[-1], t.Literal[0]]] = None,
845
873
  ) -> ObjectApiResponse[t.Any]:
846
874
  """
847
- Upgrades all transforms. This API identifies transforms that have a legacy configuration
848
- format and upgrades them to the latest version. It also cleans up the internal
849
- data structures that store the transform state and checkpoints. The upgrade does
850
- not affect the source and destination indices. The upgrade also does not affect
851
- the roles that transforms use when Elasticsearch security features are enabled;
852
- the role used to read source data and write to the destination index remains
853
- unchanged.
875
+ .. raw:: html
876
+
877
+ <p>Upgrade all transforms.
878
+ Transforms are compatible across minor versions and between supported major versions.
879
+ However, over time, the format of transform configuration information may change.
880
+ This API identifies transforms that have a legacy configuration format and upgrades them to the latest version.
881
+ It also cleans up the internal data structures that store the transform state and checkpoints.
882
+ The upgrade does not affect the source and destination indices.
883
+ The upgrade also does not affect the roles that transforms use when Elasticsearch security features are enabled; the role used to read source data and write to the destination index remains unchanged.</p>
884
+ <p>If a transform upgrade step fails, the upgrade stops and an error is returned about the underlying issue.
885
+ Resolve the issue then re-run the process again.
886
+ A summary is returned when the upgrade is finished.</p>
887
+ <p>To ensure continuous transforms remain running during a major version upgrade of the cluster – for example, from 7.16 to 8.0 – it is recommended to upgrade transforms before upgrading the cluster.
888
+ You may want to perform a recent cluster backup prior to the upgrade.</p>
889
+
854
890
 
855
891
  `<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/upgrade-transforms.html>`_
856
892