elasticsearch 9.0.2__py3-none-any.whl → 9.0.3__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 (54) hide show
  1. elasticsearch/_async/client/__init__.py +42 -198
  2. elasticsearch/_async/client/cat.py +393 -25
  3. elasticsearch/_async/client/cluster.py +14 -4
  4. elasticsearch/_async/client/eql.py +10 -2
  5. elasticsearch/_async/client/esql.py +17 -4
  6. elasticsearch/_async/client/indices.py +87 -43
  7. elasticsearch/_async/client/inference.py +108 -3
  8. elasticsearch/_async/client/ingest.py +0 -7
  9. elasticsearch/_async/client/license.py +4 -4
  10. elasticsearch/_async/client/ml.py +6 -17
  11. elasticsearch/_async/client/monitoring.py +1 -1
  12. elasticsearch/_async/client/rollup.py +1 -22
  13. elasticsearch/_async/client/security.py +11 -17
  14. elasticsearch/_async/client/snapshot.py +6 -0
  15. elasticsearch/_async/client/synonyms.py +1 -0
  16. elasticsearch/_async/client/watcher.py +4 -2
  17. elasticsearch/_sync/client/__init__.py +42 -198
  18. elasticsearch/_sync/client/cat.py +393 -25
  19. elasticsearch/_sync/client/cluster.py +14 -4
  20. elasticsearch/_sync/client/eql.py +10 -2
  21. elasticsearch/_sync/client/esql.py +17 -4
  22. elasticsearch/_sync/client/indices.py +87 -43
  23. elasticsearch/_sync/client/inference.py +108 -3
  24. elasticsearch/_sync/client/ingest.py +0 -7
  25. elasticsearch/_sync/client/license.py +4 -4
  26. elasticsearch/_sync/client/ml.py +6 -17
  27. elasticsearch/_sync/client/monitoring.py +1 -1
  28. elasticsearch/_sync/client/rollup.py +1 -22
  29. elasticsearch/_sync/client/security.py +11 -17
  30. elasticsearch/_sync/client/snapshot.py +6 -0
  31. elasticsearch/_sync/client/synonyms.py +1 -0
  32. elasticsearch/_sync/client/watcher.py +4 -2
  33. elasticsearch/_version.py +1 -1
  34. elasticsearch/compat.py +5 -0
  35. elasticsearch/dsl/__init__.py +2 -1
  36. elasticsearch/dsl/document_base.py +176 -16
  37. elasticsearch/dsl/field.py +222 -47
  38. elasticsearch/dsl/query.py +7 -4
  39. elasticsearch/dsl/types.py +105 -80
  40. elasticsearch/dsl/utils.py +1 -1
  41. elasticsearch/{dsl/_sync/_sync_check → esql}/__init__.py +2 -0
  42. elasticsearch/esql/esql.py +1105 -0
  43. elasticsearch/esql/functions.py +1738 -0
  44. {elasticsearch-9.0.2.dist-info → elasticsearch-9.0.3.dist-info}/METADATA +1 -1
  45. {elasticsearch-9.0.2.dist-info → elasticsearch-9.0.3.dist-info}/RECORD +48 -52
  46. elasticsearch/dsl/_sync/_sync_check/document.py +0 -514
  47. elasticsearch/dsl/_sync/_sync_check/faceted_search.py +0 -50
  48. elasticsearch/dsl/_sync/_sync_check/index.py +0 -597
  49. elasticsearch/dsl/_sync/_sync_check/mapping.py +0 -49
  50. elasticsearch/dsl/_sync/_sync_check/search.py +0 -230
  51. elasticsearch/dsl/_sync/_sync_check/update_by_query.py +0 -45
  52. {elasticsearch-9.0.2.dist-info → elasticsearch-9.0.3.dist-info}/WHEEL +0 -0
  53. {elasticsearch-9.0.2.dist-info → elasticsearch-9.0.3.dist-info}/licenses/LICENSE +0 -0
  54. {elasticsearch-9.0.2.dist-info → elasticsearch-9.0.3.dist-info}/licenses/NOTICE +0 -0
@@ -584,7 +584,9 @@ class CatClient(NamespacedClient):
584
584
  filter_path: t.Optional[t.Union[str, t.Sequence[str]]] = None,
585
585
  format: t.Optional[str] = None,
586
586
  h: t.Optional[t.Union[str, t.Sequence[str]]] = None,
587
- health: t.Optional[t.Union[str, t.Literal["green", "red", "yellow"]]] = None,
587
+ health: t.Optional[
588
+ t.Union[str, t.Literal["green", "red", "unavailable", "unknown", "yellow"]]
589
+ ] = None,
588
590
  help: t.Optional[bool] = None,
589
591
  human: t.Optional[bool] = None,
590
592
  include_unloaded_segments: t.Optional[bool] = None,
@@ -2216,7 +2218,74 @@ class CatClient(NamespacedClient):
2216
2218
  error_trace: t.Optional[bool] = None,
2217
2219
  filter_path: t.Optional[t.Union[str, t.Sequence[str]]] = None,
2218
2220
  format: t.Optional[str] = None,
2219
- h: t.Optional[t.Union[str, t.Sequence[str]]] = None,
2221
+ h: t.Optional[
2222
+ t.Union[
2223
+ t.Sequence[
2224
+ t.Union[
2225
+ str,
2226
+ t.Literal[
2227
+ "bytes",
2228
+ "bytes_percent",
2229
+ "bytes_recovered",
2230
+ "bytes_total",
2231
+ "files",
2232
+ "files_percent",
2233
+ "files_recovered",
2234
+ "files_total",
2235
+ "index",
2236
+ "repository",
2237
+ "shard",
2238
+ "snapshot",
2239
+ "source_host",
2240
+ "source_node",
2241
+ "stage",
2242
+ "start_time",
2243
+ "start_time_millis",
2244
+ "stop_time",
2245
+ "stop_time_millis",
2246
+ "target_host",
2247
+ "target_node",
2248
+ "time",
2249
+ "translog_ops",
2250
+ "translog_ops_percent",
2251
+ "translog_ops_recovered",
2252
+ "type",
2253
+ ],
2254
+ ]
2255
+ ],
2256
+ t.Union[
2257
+ str,
2258
+ t.Literal[
2259
+ "bytes",
2260
+ "bytes_percent",
2261
+ "bytes_recovered",
2262
+ "bytes_total",
2263
+ "files",
2264
+ "files_percent",
2265
+ "files_recovered",
2266
+ "files_total",
2267
+ "index",
2268
+ "repository",
2269
+ "shard",
2270
+ "snapshot",
2271
+ "source_host",
2272
+ "source_node",
2273
+ "stage",
2274
+ "start_time",
2275
+ "start_time_millis",
2276
+ "stop_time",
2277
+ "stop_time_millis",
2278
+ "target_host",
2279
+ "target_node",
2280
+ "time",
2281
+ "translog_ops",
2282
+ "translog_ops_percent",
2283
+ "translog_ops_recovered",
2284
+ "type",
2285
+ ],
2286
+ ],
2287
+ ]
2288
+ ] = None,
2220
2289
  help: t.Optional[bool] = None,
2221
2290
  human: t.Optional[bool] = None,
2222
2291
  pretty: t.Optional[bool] = None,
@@ -2247,13 +2316,14 @@ class CatClient(NamespacedClient):
2247
2316
  shard recoveries.
2248
2317
  :param format: Specifies the format to return the columnar data in, can be set
2249
2318
  to `text`, `json`, `cbor`, `yaml`, or `smile`.
2250
- :param h: List of columns to appear in the response. Supports simple wildcards.
2319
+ :param h: A comma-separated list of columns names to display. It supports simple
2320
+ wildcards.
2251
2321
  :param help: When set to `true` will output available columns. This option can't
2252
2322
  be combined with any other query string option.
2253
- :param s: List of columns that determine how the table should be sorted. Sorting
2254
- defaults to ascending and can be changed by setting `:asc` or `:desc` as
2255
- a suffix to the column name.
2256
- :param time: Unit used to display time values.
2323
+ :param s: A comma-separated list of column names or aliases that determines the
2324
+ sort order. Sorting defaults to ascending and can be changed by setting `:asc`
2325
+ or `:desc` as a suffix to the column name.
2326
+ :param time: The unit used to display time values.
2257
2327
  :param v: When set to `true` will enable verbose output.
2258
2328
  """
2259
2329
  __path_parts: t.Dict[str, str]
@@ -2387,7 +2457,52 @@ class CatClient(NamespacedClient):
2387
2457
  error_trace: t.Optional[bool] = None,
2388
2458
  filter_path: t.Optional[t.Union[str, t.Sequence[str]]] = None,
2389
2459
  format: t.Optional[str] = None,
2390
- h: t.Optional[t.Union[str, t.Sequence[str]]] = None,
2460
+ h: t.Optional[
2461
+ t.Union[
2462
+ t.Sequence[
2463
+ t.Union[
2464
+ str,
2465
+ t.Literal[
2466
+ "committed",
2467
+ "compound",
2468
+ "docs.count",
2469
+ "docs.deleted",
2470
+ "generation",
2471
+ "id",
2472
+ "index",
2473
+ "ip",
2474
+ "prirep",
2475
+ "searchable",
2476
+ "segment",
2477
+ "shard",
2478
+ "size",
2479
+ "size.memory",
2480
+ "version",
2481
+ ],
2482
+ ]
2483
+ ],
2484
+ t.Union[
2485
+ str,
2486
+ t.Literal[
2487
+ "committed",
2488
+ "compound",
2489
+ "docs.count",
2490
+ "docs.deleted",
2491
+ "generation",
2492
+ "id",
2493
+ "index",
2494
+ "ip",
2495
+ "prirep",
2496
+ "searchable",
2497
+ "segment",
2498
+ "shard",
2499
+ "size",
2500
+ "size.memory",
2501
+ "version",
2502
+ ],
2503
+ ],
2504
+ ]
2505
+ ] = None,
2391
2506
  help: t.Optional[bool] = None,
2392
2507
  human: t.Optional[bool] = None,
2393
2508
  local: t.Optional[bool] = None,
@@ -2413,7 +2528,8 @@ class CatClient(NamespacedClient):
2413
2528
  :param bytes: The unit used to display byte values.
2414
2529
  :param format: Specifies the format to return the columnar data in, can be set
2415
2530
  to `text`, `json`, `cbor`, `yaml`, or `smile`.
2416
- :param h: List of columns to appear in the response. Supports simple wildcards.
2531
+ :param h: A comma-separated list of columns names to display. It supports simple
2532
+ wildcards.
2417
2533
  :param help: When set to `true` will output available columns. This option can't
2418
2534
  be combined with any other query string option.
2419
2535
  :param local: If `true`, the request computes the list of selected nodes from
@@ -2421,9 +2537,9 @@ class CatClient(NamespacedClient):
2421
2537
  from the cluster state of the master node. In both cases the coordinating
2422
2538
  node will send requests for further information to each selected node.
2423
2539
  :param master_timeout: Period to wait for a connection to the master node.
2424
- :param s: List of columns that determine how the table should be sorted. Sorting
2425
- defaults to ascending and can be changed by setting `:asc` or `:desc` as
2426
- a suffix to the column name.
2540
+ :param s: A comma-separated list of column names or aliases that determines the
2541
+ sort order. Sorting defaults to ascending and can be changed by setting `:asc`
2542
+ or `:desc` as a suffix to the column name.
2427
2543
  :param v: When set to `true` will enable verbose output.
2428
2544
  """
2429
2545
  __path_parts: t.Dict[str, str]
@@ -2479,7 +2595,162 @@ class CatClient(NamespacedClient):
2479
2595
  error_trace: t.Optional[bool] = None,
2480
2596
  filter_path: t.Optional[t.Union[str, t.Sequence[str]]] = None,
2481
2597
  format: t.Optional[str] = None,
2482
- h: t.Optional[t.Union[str, t.Sequence[str]]] = None,
2598
+ h: t.Optional[
2599
+ t.Union[
2600
+ t.Sequence[
2601
+ t.Union[
2602
+ str,
2603
+ t.Literal[
2604
+ "completion.size",
2605
+ "dataset.size",
2606
+ "dense_vector.value_count",
2607
+ "docs",
2608
+ "dsparse_vector.value_count",
2609
+ "fielddata.evictions",
2610
+ "fielddata.memory_size",
2611
+ "flush.total",
2612
+ "flush.total_time",
2613
+ "get.current",
2614
+ "get.exists_time",
2615
+ "get.exists_total",
2616
+ "get.missing_time",
2617
+ "get.missing_total",
2618
+ "get.time",
2619
+ "get.total",
2620
+ "id",
2621
+ "index",
2622
+ "indexing.delete_current",
2623
+ "indexing.delete_time",
2624
+ "indexing.delete_total",
2625
+ "indexing.index_current",
2626
+ "indexing.index_failed",
2627
+ "indexing.index_failed_due_to_version_conflict",
2628
+ "indexing.index_time",
2629
+ "indexing.index_total",
2630
+ "ip",
2631
+ "merges.current",
2632
+ "merges.current_docs",
2633
+ "merges.current_size",
2634
+ "merges.total",
2635
+ "merges.total_docs",
2636
+ "merges.total_size",
2637
+ "merges.total_time",
2638
+ "node",
2639
+ "prirep",
2640
+ "query_cache.evictions",
2641
+ "query_cache.memory_size",
2642
+ "recoverysource.type",
2643
+ "refresh.time",
2644
+ "refresh.total",
2645
+ "search.fetch_current",
2646
+ "search.fetch_time",
2647
+ "search.fetch_total",
2648
+ "search.open_contexts",
2649
+ "search.query_current",
2650
+ "search.query_time",
2651
+ "search.query_total",
2652
+ "search.scroll_current",
2653
+ "search.scroll_time",
2654
+ "search.scroll_total",
2655
+ "segments.count",
2656
+ "segments.fixed_bitset_memory",
2657
+ "segments.index_writer_memory",
2658
+ "segments.memory",
2659
+ "segments.version_map_memory",
2660
+ "seq_no.global_checkpoint",
2661
+ "seq_no.local_checkpoint",
2662
+ "seq_no.max",
2663
+ "shard",
2664
+ "state",
2665
+ "store",
2666
+ "suggest.current",
2667
+ "suggest.time",
2668
+ "suggest.total",
2669
+ "sync_id",
2670
+ "unassigned.at",
2671
+ "unassigned.details",
2672
+ "unassigned.for",
2673
+ "unassigned.reason",
2674
+ ],
2675
+ ]
2676
+ ],
2677
+ t.Union[
2678
+ str,
2679
+ t.Literal[
2680
+ "completion.size",
2681
+ "dataset.size",
2682
+ "dense_vector.value_count",
2683
+ "docs",
2684
+ "dsparse_vector.value_count",
2685
+ "fielddata.evictions",
2686
+ "fielddata.memory_size",
2687
+ "flush.total",
2688
+ "flush.total_time",
2689
+ "get.current",
2690
+ "get.exists_time",
2691
+ "get.exists_total",
2692
+ "get.missing_time",
2693
+ "get.missing_total",
2694
+ "get.time",
2695
+ "get.total",
2696
+ "id",
2697
+ "index",
2698
+ "indexing.delete_current",
2699
+ "indexing.delete_time",
2700
+ "indexing.delete_total",
2701
+ "indexing.index_current",
2702
+ "indexing.index_failed",
2703
+ "indexing.index_failed_due_to_version_conflict",
2704
+ "indexing.index_time",
2705
+ "indexing.index_total",
2706
+ "ip",
2707
+ "merges.current",
2708
+ "merges.current_docs",
2709
+ "merges.current_size",
2710
+ "merges.total",
2711
+ "merges.total_docs",
2712
+ "merges.total_size",
2713
+ "merges.total_time",
2714
+ "node",
2715
+ "prirep",
2716
+ "query_cache.evictions",
2717
+ "query_cache.memory_size",
2718
+ "recoverysource.type",
2719
+ "refresh.time",
2720
+ "refresh.total",
2721
+ "search.fetch_current",
2722
+ "search.fetch_time",
2723
+ "search.fetch_total",
2724
+ "search.open_contexts",
2725
+ "search.query_current",
2726
+ "search.query_time",
2727
+ "search.query_total",
2728
+ "search.scroll_current",
2729
+ "search.scroll_time",
2730
+ "search.scroll_total",
2731
+ "segments.count",
2732
+ "segments.fixed_bitset_memory",
2733
+ "segments.index_writer_memory",
2734
+ "segments.memory",
2735
+ "segments.version_map_memory",
2736
+ "seq_no.global_checkpoint",
2737
+ "seq_no.local_checkpoint",
2738
+ "seq_no.max",
2739
+ "shard",
2740
+ "state",
2741
+ "store",
2742
+ "suggest.current",
2743
+ "suggest.time",
2744
+ "suggest.total",
2745
+ "sync_id",
2746
+ "unassigned.at",
2747
+ "unassigned.details",
2748
+ "unassigned.for",
2749
+ "unassigned.reason",
2750
+ ],
2751
+ ],
2752
+ ]
2753
+ ] = None,
2483
2754
  help: t.Optional[bool] = None,
2484
2755
  human: t.Optional[bool] = None,
2485
2756
  master_timeout: t.Optional[t.Union[str, t.Literal[-1], t.Literal[0]]] = None,
@@ -2510,11 +2781,11 @@ class CatClient(NamespacedClient):
2510
2781
  :param h: List of columns to appear in the response. Supports simple wildcards.
2511
2782
  :param help: When set to `true` will output available columns. This option can't
2512
2783
  be combined with any other query string option.
2513
- :param master_timeout: Period to wait for a connection to the master node.
2514
- :param s: List of columns that determine how the table should be sorted. Sorting
2515
- defaults to ascending and can be changed by setting `:asc` or `:desc` as
2516
- a suffix to the column name.
2517
- :param time: Unit used to display time values.
2784
+ :param master_timeout: The period to wait for a connection to the master node.
2785
+ :param s: A comma-separated list of column names or aliases that determines the
2786
+ sort order. Sorting defaults to ascending and can be changed by setting `:asc`
2787
+ or `:desc` as a suffix to the column name.
2788
+ :param time: The unit used to display time values.
2518
2789
  :param v: When set to `true` will enable verbose output.
2519
2790
  """
2520
2791
  __path_parts: t.Dict[str, str]
@@ -2567,7 +2838,48 @@ class CatClient(NamespacedClient):
2567
2838
  error_trace: t.Optional[bool] = None,
2568
2839
  filter_path: t.Optional[t.Union[str, t.Sequence[str]]] = None,
2569
2840
  format: t.Optional[str] = None,
2570
- h: t.Optional[t.Union[str, t.Sequence[str]]] = None,
2841
+ h: t.Optional[
2842
+ t.Union[
2843
+ t.Sequence[
2844
+ t.Union[
2845
+ str,
2846
+ t.Literal[
2847
+ "duration",
2848
+ "end_epoch",
2849
+ "end_time",
2850
+ "failed_shards",
2851
+ "id",
2852
+ "indices",
2853
+ "reason",
2854
+ "repository",
2855
+ "start_epoch",
2856
+ "start_time",
2857
+ "status",
2858
+ "successful_shards",
2859
+ "total_shards",
2860
+ ],
2861
+ ]
2862
+ ],
2863
+ t.Union[
2864
+ str,
2865
+ t.Literal[
2866
+ "duration",
2867
+ "end_epoch",
2868
+ "end_time",
2869
+ "failed_shards",
2870
+ "id",
2871
+ "indices",
2872
+ "reason",
2873
+ "repository",
2874
+ "start_epoch",
2875
+ "start_time",
2876
+ "status",
2877
+ "successful_shards",
2878
+ "total_shards",
2879
+ ],
2880
+ ],
2881
+ ]
2882
+ ] = None,
2571
2883
  help: t.Optional[bool] = None,
2572
2884
  human: t.Optional[bool] = None,
2573
2885
  ignore_unavailable: t.Optional[bool] = None,
@@ -2595,7 +2907,8 @@ class CatClient(NamespacedClient):
2595
2907
  If any repository fails during the request, Elasticsearch returns an error.
2596
2908
  :param format: Specifies the format to return the columnar data in, can be set
2597
2909
  to `text`, `json`, `cbor`, `yaml`, or `smile`.
2598
- :param h: List of columns to appear in the response. Supports simple wildcards.
2910
+ :param h: A comma-separated list of columns names to display. It supports simple
2911
+ wildcards.
2599
2912
  :param help: When set to `true` will output available columns. This option can't
2600
2913
  be combined with any other query string option.
2601
2914
  :param ignore_unavailable: If `true`, the response does not include information
@@ -2842,7 +3155,62 @@ class CatClient(NamespacedClient):
2842
3155
  error_trace: t.Optional[bool] = None,
2843
3156
  filter_path: t.Optional[t.Union[str, t.Sequence[str]]] = None,
2844
3157
  format: t.Optional[str] = None,
2845
- h: t.Optional[t.Union[str, t.Sequence[str]]] = None,
3158
+ h: t.Optional[
3159
+ t.Union[
3160
+ t.Sequence[
3161
+ t.Union[
3162
+ str,
3163
+ t.Literal[
3164
+ "active",
3165
+ "completed",
3166
+ "core",
3167
+ "ephemeral_id",
3168
+ "host",
3169
+ "ip",
3170
+ "keep_alive",
3171
+ "largest",
3172
+ "max",
3173
+ "name",
3174
+ "node_id",
3175
+ "node_name",
3176
+ "pid",
3177
+ "pool_size",
3178
+ "port",
3179
+ "queue",
3180
+ "queue_size",
3181
+ "rejected",
3182
+ "size",
3183
+ "type",
3184
+ ],
3185
+ ]
3186
+ ],
3187
+ t.Union[
3188
+ str,
3189
+ t.Literal[
3190
+ "active",
3191
+ "completed",
3192
+ "core",
3193
+ "ephemeral_id",
3194
+ "host",
3195
+ "ip",
3196
+ "keep_alive",
3197
+ "largest",
3198
+ "max",
3199
+ "name",
3200
+ "node_id",
3201
+ "node_name",
3202
+ "pid",
3203
+ "pool_size",
3204
+ "port",
3205
+ "queue",
3206
+ "queue_size",
3207
+ "rejected",
3208
+ "size",
3209
+ "type",
3210
+ ],
3211
+ ],
3212
+ ]
3213
+ ] = None,
2846
3214
  help: t.Optional[bool] = None,
2847
3215
  human: t.Optional[bool] = None,
2848
3216
  local: t.Optional[bool] = None,
@@ -2876,10 +3244,10 @@ class CatClient(NamespacedClient):
2876
3244
  the local cluster state. If `false` the list of selected nodes are computed
2877
3245
  from the cluster state of the master node. In both cases the coordinating
2878
3246
  node will send requests for further information to each selected node.
2879
- :param master_timeout: Period to wait for a connection to the master node.
2880
- :param s: List of columns that determine how the table should be sorted. Sorting
2881
- defaults to ascending and can be changed by setting `:asc` or `:desc` as
2882
- a suffix to the column name.
3247
+ :param master_timeout: The period to wait for a connection to the master node.
3248
+ :param s: A comma-separated list of column names or aliases that determines the
3249
+ sort order. Sorting defaults to ascending and can be changed by setting `:asc`
3250
+ or `:desc` as a suffix to the column name.
2883
3251
  :param time: The unit used to display time values.
2884
3252
  :param v: When set to `true` will enable verbose output.
2885
3253
  """
@@ -51,7 +51,8 @@ class ClusterClient(NamespacedClient):
51
51
  Get explanations for shard allocations in the cluster.
52
52
  For unassigned shards, it provides an explanation for why the shard is unassigned.
53
53
  For assigned shards, it provides an explanation for why the shard is remaining on its current node and has not moved or rebalanced to another node.
54
- This API can be very useful when attempting to diagnose why a shard is unassigned or why a shard continues to remain on its current node when you might expect otherwise.</p>
54
+ This API can be very useful when attempting to diagnose why a shard is unassigned or why a shard continues to remain on its current node when you might expect otherwise.
55
+ Refer to the linked documentation for examples of how to troubleshoot allocation issues using this API.</p>
55
56
 
56
57
 
57
58
  `<https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-cluster-allocation-explain>`_
@@ -290,6 +291,7 @@ class ClusterClient(NamespacedClient):
290
291
  local: t.Optional[bool] = None,
291
292
  master_timeout: t.Optional[t.Union[str, t.Literal[-1], t.Literal[0]]] = None,
292
293
  pretty: t.Optional[bool] = None,
294
+ settings_filter: t.Optional[t.Union[str, t.Sequence[str]]] = None,
293
295
  ) -> ObjectApiResponse[t.Any]:
294
296
  """
295
297
  .. raw:: html
@@ -310,6 +312,8 @@ class ClusterClient(NamespacedClient):
310
312
  :param master_timeout: Period to wait for a connection to the master node. If
311
313
  no response is received before the timeout expires, the request fails and
312
314
  returns an error.
315
+ :param settings_filter: Filter out results, for example to filter out sensitive
316
+ information. Supports wildcards or full settings keys
313
317
  """
314
318
  __path_parts: t.Dict[str, str]
315
319
  if name not in SKIP_IN_PATH:
@@ -335,6 +339,8 @@ class ClusterClient(NamespacedClient):
335
339
  __query["master_timeout"] = master_timeout
336
340
  if pretty is not None:
337
341
  __query["pretty"] = pretty
342
+ if settings_filter is not None:
343
+ __query["settings_filter"] = settings_filter
338
344
  __headers = {"accept": "application/json"}
339
345
  return await self.perform_request( # type: ignore[return-value]
340
346
  "GET",
@@ -441,7 +447,7 @@ class ClusterClient(NamespacedClient):
441
447
  wait_for_no_relocating_shards: t.Optional[bool] = None,
442
448
  wait_for_nodes: t.Optional[t.Union[int, str]] = None,
443
449
  wait_for_status: t.Optional[
444
- t.Union[str, t.Literal["green", "red", "yellow"]]
450
+ t.Union[str, t.Literal["green", "red", "unavailable", "unknown", "yellow"]]
445
451
  ] = None,
446
452
  ) -> ObjectApiResponse[t.Any]:
447
453
  """
@@ -731,6 +737,7 @@ class ClusterClient(NamespacedClient):
731
737
  *,
732
738
  name: str,
733
739
  template: t.Optional[t.Mapping[str, t.Any]] = None,
740
+ cause: t.Optional[str] = None,
734
741
  create: t.Optional[bool] = None,
735
742
  deprecated: t.Optional[bool] = None,
736
743
  error_trace: t.Optional[bool] = None,
@@ -774,6 +781,7 @@ class ClusterClient(NamespacedClient):
774
781
  update settings API.
775
782
  :param template: The template to be applied which includes mappings, settings,
776
783
  or aliases configuration.
784
+ :param cause: User defined reason for create the component template.
777
785
  :param create: If `true`, this request cannot replace or update existing component
778
786
  templates.
779
787
  :param deprecated: Marks this index template as deprecated. When creating or
@@ -798,6 +806,8 @@ class ClusterClient(NamespacedClient):
798
806
  __path = f'/_component_template/{__path_parts["name"]}'
799
807
  __query: t.Dict[str, t.Any] = {}
800
808
  __body: t.Dict[str, t.Any] = body if body is not None else {}
809
+ if cause is not None:
810
+ __query["cause"] = cause
801
811
  if create is not None:
802
812
  __query["create"] = create
803
813
  if error_trace is not None:
@@ -870,9 +880,9 @@ class ClusterClient(NamespacedClient):
870
880
 
871
881
  :param flat_settings: Return settings in flat format (default: false)
872
882
  :param master_timeout: Explicit operation timeout for connection to master node
873
- :param persistent:
883
+ :param persistent: The settings that persist after the cluster restarts.
874
884
  :param timeout: Explicit operation timeout
875
- :param transient:
885
+ :param transient: The settings that do not persist after the cluster restarts.
876
886
  """
877
887
  __path_parts: t.Dict[str, str] = {}
878
888
  __path = "/_cluster/settings"
@@ -204,6 +204,7 @@ class EqlClient(NamespacedClient):
204
204
  allow_partial_search_results: t.Optional[bool] = None,
205
205
  allow_partial_sequence_results: t.Optional[bool] = None,
206
206
  case_sensitive: t.Optional[bool] = None,
207
+ ccs_minimize_roundtrips: t.Optional[bool] = None,
207
208
  error_trace: t.Optional[bool] = None,
208
209
  event_category_field: t.Optional[str] = None,
209
210
  expand_wildcards: t.Optional[
@@ -250,7 +251,9 @@ class EqlClient(NamespacedClient):
250
251
 
251
252
  :param index: The name of the index to scope the operation
252
253
  :param query: EQL query you wish to run.
253
- :param allow_no_indices:
254
+ :param allow_no_indices: Whether to ignore if a wildcard indices expression resolves
255
+ into no concrete indices. (This includes `_all` string or when no indices
256
+ have been specified)
254
257
  :param allow_partial_search_results: Allow query execution also in case of shard
255
258
  failures. If true, the query will keep running and will return results based
256
259
  on the available shards. For sequences, the behavior can be further refined
@@ -261,9 +264,12 @@ class EqlClient(NamespacedClient):
261
264
  If false, the sequence query will return successfully, but will always have
262
265
  empty results.
263
266
  :param case_sensitive:
267
+ :param ccs_minimize_roundtrips: Indicates whether network round-trips should
268
+ be minimized as part of cross-cluster search requests execution
264
269
  :param event_category_field: Field containing the event classification, such
265
270
  as process, file, or network.
266
- :param expand_wildcards:
271
+ :param expand_wildcards: Whether to expand wildcard expression to concrete indices
272
+ that are open, closed or both.
267
273
  :param fetch_size: Maximum number of events to search at a time for sequence
268
274
  queries.
269
275
  :param fields: Array of wildcard (*) patterns. The response returns values for
@@ -298,6 +304,8 @@ class EqlClient(NamespacedClient):
298
304
  __body: t.Dict[str, t.Any] = body if body is not None else {}
299
305
  if allow_no_indices is not None:
300
306
  __query["allow_no_indices"] = allow_no_indices
307
+ if ccs_minimize_roundtrips is not None:
308
+ __query["ccs_minimize_roundtrips"] = ccs_minimize_roundtrips
301
309
  if error_trace is not None:
302
310
  __query["error_trace"] = error_trace
303
311
  if expand_wildcards is not None: