elasticsearch 8.16.0__py3-none-any.whl → 8.17.0__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 (85) hide show
  1. elasticsearch/_async/client/__init__.py +82 -46
  2. elasticsearch/_async/client/async_search.py +12 -22
  3. elasticsearch/_async/client/autoscaling.py +39 -4
  4. elasticsearch/_async/client/cat.py +26 -26
  5. elasticsearch/_async/client/ccr.py +85 -35
  6. elasticsearch/_async/client/cluster.py +141 -49
  7. elasticsearch/_async/client/connector.py +25 -25
  8. elasticsearch/_async/client/dangling_indices.py +3 -3
  9. elasticsearch/_async/client/enrich.py +6 -6
  10. elasticsearch/_async/client/eql.py +13 -11
  11. elasticsearch/_async/client/esql.py +3 -2
  12. elasticsearch/_async/client/features.py +27 -5
  13. elasticsearch/_async/client/fleet.py +1 -1
  14. elasticsearch/_async/client/graph.py +9 -3
  15. elasticsearch/_async/client/ilm.py +69 -34
  16. elasticsearch/_async/client/indices.py +307 -105
  17. elasticsearch/_async/client/inference.py +5 -15
  18. elasticsearch/_async/client/ingest.py +28 -23
  19. elasticsearch/_async/client/license.py +38 -22
  20. elasticsearch/_async/client/logstash.py +3 -3
  21. elasticsearch/_async/client/migration.py +3 -3
  22. elasticsearch/_async/client/ml.py +125 -73
  23. elasticsearch/_async/client/monitoring.py +1 -1
  24. elasticsearch/_async/client/nodes.py +34 -20
  25. elasticsearch/_async/client/query_rules.py +17 -16
  26. elasticsearch/_async/client/rollup.py +8 -8
  27. elasticsearch/_async/client/search_application.py +8 -8
  28. elasticsearch/_async/client/searchable_snapshots.py +4 -4
  29. elasticsearch/_async/client/security.py +64 -57
  30. elasticsearch/_async/client/slm.py +9 -9
  31. elasticsearch/_async/client/snapshot.py +12 -12
  32. elasticsearch/_async/client/sql.py +16 -15
  33. elasticsearch/_async/client/ssl.py +1 -1
  34. elasticsearch/_async/client/synonyms.py +17 -14
  35. elasticsearch/_async/client/tasks.py +3 -3
  36. elasticsearch/_async/client/text_structure.py +2 -2
  37. elasticsearch/_async/client/transform.py +11 -11
  38. elasticsearch/_async/client/watcher.py +11 -11
  39. elasticsearch/_async/client/xpack.py +2 -2
  40. elasticsearch/_sync/client/__init__.py +82 -46
  41. elasticsearch/_sync/client/async_search.py +12 -22
  42. elasticsearch/_sync/client/autoscaling.py +39 -4
  43. elasticsearch/_sync/client/cat.py +26 -26
  44. elasticsearch/_sync/client/ccr.py +85 -35
  45. elasticsearch/_sync/client/cluster.py +141 -49
  46. elasticsearch/_sync/client/connector.py +25 -25
  47. elasticsearch/_sync/client/dangling_indices.py +3 -3
  48. elasticsearch/_sync/client/enrich.py +6 -6
  49. elasticsearch/_sync/client/eql.py +13 -11
  50. elasticsearch/_sync/client/esql.py +3 -2
  51. elasticsearch/_sync/client/features.py +27 -5
  52. elasticsearch/_sync/client/fleet.py +1 -1
  53. elasticsearch/_sync/client/graph.py +9 -3
  54. elasticsearch/_sync/client/ilm.py +69 -34
  55. elasticsearch/_sync/client/indices.py +307 -105
  56. elasticsearch/_sync/client/inference.py +5 -15
  57. elasticsearch/_sync/client/ingest.py +28 -23
  58. elasticsearch/_sync/client/license.py +38 -22
  59. elasticsearch/_sync/client/logstash.py +3 -3
  60. elasticsearch/_sync/client/migration.py +3 -3
  61. elasticsearch/_sync/client/ml.py +125 -73
  62. elasticsearch/_sync/client/monitoring.py +1 -1
  63. elasticsearch/_sync/client/nodes.py +34 -20
  64. elasticsearch/_sync/client/query_rules.py +17 -16
  65. elasticsearch/_sync/client/rollup.py +8 -8
  66. elasticsearch/_sync/client/search_application.py +8 -8
  67. elasticsearch/_sync/client/searchable_snapshots.py +4 -4
  68. elasticsearch/_sync/client/security.py +64 -57
  69. elasticsearch/_sync/client/slm.py +9 -9
  70. elasticsearch/_sync/client/snapshot.py +12 -12
  71. elasticsearch/_sync/client/sql.py +16 -15
  72. elasticsearch/_sync/client/ssl.py +1 -1
  73. elasticsearch/_sync/client/synonyms.py +17 -14
  74. elasticsearch/_sync/client/tasks.py +3 -3
  75. elasticsearch/_sync/client/text_structure.py +2 -2
  76. elasticsearch/_sync/client/transform.py +11 -11
  77. elasticsearch/_sync/client/watcher.py +11 -11
  78. elasticsearch/_sync/client/xpack.py +2 -2
  79. elasticsearch/_version.py +1 -1
  80. {elasticsearch-8.16.0.dist-info → elasticsearch-8.17.0.dist-info}/METADATA +6 -4
  81. elasticsearch-8.17.0.dist-info/RECORD +117 -0
  82. {elasticsearch-8.16.0.dist-info → elasticsearch-8.17.0.dist-info}/WHEEL +1 -1
  83. elasticsearch-8.16.0.dist-info/RECORD +0 -117
  84. {elasticsearch-8.16.0.dist-info → elasticsearch-8.17.0.dist-info}/licenses/LICENSE +0 -0
  85. {elasticsearch-8.16.0.dist-info → elasticsearch-8.17.0.dist-info}/licenses/NOTICE +0 -0
@@ -47,7 +47,7 @@ class SecurityClient(NamespacedClient):
47
47
  Activate a user profile. Create or update a user profile on behalf of another
48
48
  user.
49
49
 
50
- `<https://www.elastic.co/guide/en/elasticsearch/reference/8.16/security-api-activate-user-profile.html>`_
50
+ `<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/security-api-activate-user-profile.html>`_
51
51
 
52
52
  :param grant_type:
53
53
  :param access_token:
@@ -105,7 +105,7 @@ class SecurityClient(NamespacedClient):
105
105
  and information about the realms that authenticated and authorized the user.
106
106
  If the user cannot be authenticated, this API returns a 401 status code.
107
107
 
108
- `<https://www.elastic.co/guide/en/elasticsearch/reference/8.16/security-api-authenticate.html>`_
108
+ `<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/security-api-authenticate.html>`_
109
109
  """
110
110
  __path_parts: t.Dict[str, str] = {}
111
111
  __path = "/_security/_authenticate"
@@ -149,7 +149,7 @@ class SecurityClient(NamespacedClient):
149
149
  manage roles, rather than using file-based role management. The bulk delete roles
150
150
  API cannot delete roles that are defined in roles files.
151
151
 
152
- `<https://www.elastic.co/guide/en/elasticsearch/reference/8.16/security-api-bulk-delete-role.html>`_
152
+ `<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/security-api-bulk-delete-role.html>`_
153
153
 
154
154
  :param names: An array of role names to delete
155
155
  :param refresh: If `true` (the default) then refresh the affected shards to make
@@ -207,7 +207,7 @@ class SecurityClient(NamespacedClient):
207
207
  way to manage roles, rather than using file-based role management. The bulk create
208
208
  or update roles API cannot update roles that are defined in roles files.
209
209
 
210
- `<https://www.elastic.co/guide/en/elasticsearch/reference/8.16/security-api-bulk-put-role.html>`_
210
+ `<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/security-api-bulk-put-role.html>`_
211
211
 
212
212
  :param roles: A dictionary of role name to RoleDescriptor objects to add or update
213
213
  :param refresh: If `true` (the default) then refresh the affected shards to make
@@ -266,7 +266,7 @@ class SecurityClient(NamespacedClient):
266
266
  Change passwords. Change the passwords of users in the native realm and built-in
267
267
  users.
268
268
 
269
- `<https://www.elastic.co/guide/en/elasticsearch/reference/8.16/security-api-change-password.html>`_
269
+ `<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/security-api-change-password.html>`_
270
270
 
271
271
  :param username: The user whose password you want to change. If you do not specify
272
272
  this parameter, the password is changed for the current user.
@@ -329,7 +329,7 @@ class SecurityClient(NamespacedClient):
329
329
  Clear the API key cache. Evict a subset of all entries from the API key cache.
330
330
  The cache is also automatically cleared on state changes of the security index.
331
331
 
332
- `<https://www.elastic.co/guide/en/elasticsearch/reference/8.16/security-api-clear-api-key-cache.html>`_
332
+ `<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/security-api-clear-api-key-cache.html>`_
333
333
 
334
334
  :param ids: Comma-separated list of API key IDs to evict from the API key cache.
335
335
  To evict all API keys, use `*`. Does not support other wildcard patterns.
@@ -372,7 +372,7 @@ class SecurityClient(NamespacedClient):
372
372
  cache. The cache is also automatically cleared for applications that have their
373
373
  privileges updated.
374
374
 
375
- `<https://www.elastic.co/guide/en/elasticsearch/reference/8.16/security-api-clear-privilege-cache.html>`_
375
+ `<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/security-api-clear-privilege-cache.html>`_
376
376
 
377
377
  :param application: A comma-separated list of application names
378
378
  """
@@ -414,7 +414,7 @@ class SecurityClient(NamespacedClient):
414
414
  Clear the user cache. Evict users from the user cache. You can completely clear
415
415
  the cache or evict specific users.
416
416
 
417
- `<https://www.elastic.co/guide/en/elasticsearch/reference/8.16/security-api-clear-cache.html>`_
417
+ `<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/security-api-clear-cache.html>`_
418
418
 
419
419
  :param realms: Comma-separated list of realms to clear
420
420
  :param usernames: Comma-separated list of usernames to clear from the cache
@@ -457,7 +457,7 @@ class SecurityClient(NamespacedClient):
457
457
  """
458
458
  Clear the roles cache. Evict roles from the native role cache.
459
459
 
460
- `<https://www.elastic.co/guide/en/elasticsearch/reference/8.16/security-api-clear-role-cache.html>`_
460
+ `<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/security-api-clear-role-cache.html>`_
461
461
 
462
462
  :param name: Role name
463
463
  """
@@ -500,7 +500,7 @@ class SecurityClient(NamespacedClient):
500
500
  Clear service account token caches. Evict a subset of all entries from the service
501
501
  account token caches.
502
502
 
503
- `<https://www.elastic.co/guide/en/elasticsearch/reference/8.16/security-api-clear-service-token-caches.html>`_
503
+ `<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/security-api-clear-service-token-caches.html>`_
504
504
 
505
505
  :param namespace: An identifier for the namespace
506
506
  :param service: An identifier for the service name
@@ -563,7 +563,7 @@ class SecurityClient(NamespacedClient):
563
563
  for the API key in milliseconds. NOTE: By default, API keys never expire. You
564
564
  can specify expiration information when you create the API keys.
565
565
 
566
- `<https://www.elastic.co/guide/en/elasticsearch/reference/8.16/security-api-create-api-key.html>`_
566
+ `<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/security-api-create-api-key.html>`_
567
567
 
568
568
  :param expiration: Expiration time for the API key. By default, API keys never
569
569
  expire.
@@ -650,7 +650,7 @@ class SecurityClient(NamespacedClient):
650
650
  API key API. Attempting to update them with the update REST API key API or the
651
651
  bulk update REST API keys API will result in an error.
652
652
 
653
- `<https://www.elastic.co/guide/en/elasticsearch/reference/8.16/security-api-create-cross-cluster-api-key.html>`_
653
+ `<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/security-api-create-cross-cluster-api-key.html>`_
654
654
 
655
655
  :param access: The access to be granted to this API key. The access is composed
656
656
  of permissions for cross-cluster search and cross-cluster replication. At
@@ -720,7 +720,7 @@ class SecurityClient(NamespacedClient):
720
720
  Create a service account token. Create a service accounts token for access without
721
721
  requiring basic authentication.
722
722
 
723
- `<https://www.elastic.co/guide/en/elasticsearch/reference/8.16/security-api-create-service-token.html>`_
723
+ `<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/security-api-create-service-token.html>`_
724
724
 
725
725
  :param namespace: An identifier for the namespace
726
726
  :param service: An identifier for the service name
@@ -790,7 +790,7 @@ class SecurityClient(NamespacedClient):
790
790
  """
791
791
  Delete application privileges.
792
792
 
793
- `<https://www.elastic.co/guide/en/elasticsearch/reference/8.16/security-api-delete-privilege.html>`_
793
+ `<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/security-api-delete-privilege.html>`_
794
794
 
795
795
  :param application: Application name
796
796
  :param name: Privilege name
@@ -846,7 +846,7 @@ class SecurityClient(NamespacedClient):
846
846
  """
847
847
  Delete roles. Delete roles in the native realm.
848
848
 
849
- `<https://www.elastic.co/guide/en/elasticsearch/reference/8.16/security-api-delete-role.html>`_
849
+ `<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/security-api-delete-role.html>`_
850
850
 
851
851
  :param name: Role name
852
852
  :param refresh: If `true` (the default) then refresh the affected shards to make
@@ -894,7 +894,7 @@ class SecurityClient(NamespacedClient):
894
894
  """
895
895
  Delete role mappings.
896
896
 
897
- `<https://www.elastic.co/guide/en/elasticsearch/reference/8.16/security-api-delete-role-mapping.html>`_
897
+ `<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/security-api-delete-role-mapping.html>`_
898
898
 
899
899
  :param name: Role-mapping name
900
900
  :param refresh: If `true` (the default) then refresh the affected shards to make
@@ -945,7 +945,7 @@ class SecurityClient(NamespacedClient):
945
945
  Delete service account tokens. Delete service account tokens for a service in
946
946
  a specified namespace.
947
947
 
948
- `<https://www.elastic.co/guide/en/elasticsearch/reference/8.16/security-api-delete-service-token.html>`_
948
+ `<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/security-api-delete-service-token.html>`_
949
949
 
950
950
  :param namespace: An identifier for the namespace
951
951
  :param service: An identifier for the service name
@@ -1003,7 +1003,7 @@ class SecurityClient(NamespacedClient):
1003
1003
  """
1004
1004
  Delete users. Delete users from the native realm.
1005
1005
 
1006
- `<https://www.elastic.co/guide/en/elasticsearch/reference/8.16/security-api-delete-user.html>`_
1006
+ `<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/security-api-delete-user.html>`_
1007
1007
 
1008
1008
  :param username: username
1009
1009
  :param refresh: If `true` (the default) then refresh the affected shards to make
@@ -1051,7 +1051,7 @@ class SecurityClient(NamespacedClient):
1051
1051
  """
1052
1052
  Disable users. Disable users in the native realm.
1053
1053
 
1054
- `<https://www.elastic.co/guide/en/elasticsearch/reference/8.16/security-api-disable-user.html>`_
1054
+ `<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/security-api-disable-user.html>`_
1055
1055
 
1056
1056
  :param username: The username of the user to disable
1057
1057
  :param refresh: If `true` (the default) then refresh the affected shards to make
@@ -1100,7 +1100,7 @@ class SecurityClient(NamespacedClient):
1100
1100
  Disable a user profile. Disable user profiles so that they are not visible in
1101
1101
  user profile searches.
1102
1102
 
1103
- `<https://www.elastic.co/guide/en/elasticsearch/reference/8.16/security-api-disable-user-profile.html>`_
1103
+ `<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/security-api-disable-user-profile.html>`_
1104
1104
 
1105
1105
  :param uid: Unique identifier for the user profile.
1106
1106
  :param refresh: If 'true', Elasticsearch refreshes the affected shards to make
@@ -1148,7 +1148,7 @@ class SecurityClient(NamespacedClient):
1148
1148
  """
1149
1149
  Enable users. Enable users in the native realm.
1150
1150
 
1151
- `<https://www.elastic.co/guide/en/elasticsearch/reference/8.16/security-api-enable-user.html>`_
1151
+ `<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/security-api-enable-user.html>`_
1152
1152
 
1153
1153
  :param username: The username of the user to enable
1154
1154
  :param refresh: If `true` (the default) then refresh the affected shards to make
@@ -1197,7 +1197,7 @@ class SecurityClient(NamespacedClient):
1197
1197
  Enable a user profile. Enable user profiles to make them visible in user profile
1198
1198
  searches.
1199
1199
 
1200
- `<https://www.elastic.co/guide/en/elasticsearch/reference/8.16/security-api-enable-user-profile.html>`_
1200
+ `<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/security-api-enable-user-profile.html>`_
1201
1201
 
1202
1202
  :param uid: Unique identifier for the user profile.
1203
1203
  :param refresh: If 'true', Elasticsearch refreshes the affected shards to make
@@ -1242,7 +1242,7 @@ class SecurityClient(NamespacedClient):
1242
1242
  Enroll Kibana. Enable a Kibana instance to configure itself for communication
1243
1243
  with a secured Elasticsearch cluster.
1244
1244
 
1245
- `<https://www.elastic.co/guide/en/elasticsearch/reference/8.16/security-api-kibana-enrollment.html>`_
1245
+ `<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/security-api-kibana-enrollment.html>`_
1246
1246
  """
1247
1247
  __path_parts: t.Dict[str, str] = {}
1248
1248
  __path = "/_security/enroll/kibana"
@@ -1278,7 +1278,7 @@ class SecurityClient(NamespacedClient):
1278
1278
  Enroll a node. Enroll a new node to allow it to join an existing cluster with
1279
1279
  security features enabled.
1280
1280
 
1281
- `<https://www.elastic.co/guide/en/elasticsearch/reference/8.16/security-api-node-enrollment.html>`_
1281
+ `<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/security-api-node-enrollment.html>`_
1282
1282
  """
1283
1283
  __path_parts: t.Dict[str, str] = {}
1284
1284
  __path = "/_security/enroll/node"
@@ -1325,7 +1325,7 @@ class SecurityClient(NamespacedClient):
1325
1325
  privileges (including `manage_security`), this API returns all API keys regardless
1326
1326
  of ownership.
1327
1327
 
1328
- `<https://www.elastic.co/guide/en/elasticsearch/reference/8.16/security-api-get-api-key.html>`_
1328
+ `<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/security-api-get-api-key.html>`_
1329
1329
 
1330
1330
  :param active_only: A boolean flag that can be used to query API keys that are
1331
1331
  currently active. An API key is considered active if it is neither invalidated,
@@ -1400,7 +1400,7 @@ class SecurityClient(NamespacedClient):
1400
1400
  Get builtin privileges. Get the list of cluster privileges and index privileges
1401
1401
  that are available in this version of Elasticsearch.
1402
1402
 
1403
- `<https://www.elastic.co/guide/en/elasticsearch/reference/8.16/security-api-get-builtin-privileges.html>`_
1403
+ `<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/security-api-get-builtin-privileges.html>`_
1404
1404
  """
1405
1405
  __path_parts: t.Dict[str, str] = {}
1406
1406
  __path = "/_security/privilege/_builtin"
@@ -1437,7 +1437,7 @@ class SecurityClient(NamespacedClient):
1437
1437
  """
1438
1438
  Get application privileges.
1439
1439
 
1440
- `<https://www.elastic.co/guide/en/elasticsearch/reference/8.16/security-api-get-privileges.html>`_
1440
+ `<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/security-api-get-privileges.html>`_
1441
1441
 
1442
1442
  :param application: Application name
1443
1443
  :param name: Privilege name
@@ -1486,7 +1486,7 @@ class SecurityClient(NamespacedClient):
1486
1486
  the preferred way to manage roles, rather than using file-based role management.
1487
1487
  The get roles API cannot retrieve roles that are defined in roles files.
1488
1488
 
1489
- `<https://www.elastic.co/guide/en/elasticsearch/reference/8.16/security-api-get-role.html>`_
1489
+ `<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/security-api-get-role.html>`_
1490
1490
 
1491
1491
  :param name: The name of the role. You can specify multiple roles as a comma-separated
1492
1492
  list. If you do not specify this parameter, the API returns information about
@@ -1534,7 +1534,7 @@ class SecurityClient(NamespacedClient):
1534
1534
  rather than using role mapping files. The get role mappings API cannot retrieve
1535
1535
  role mappings that are defined in role mapping files.
1536
1536
 
1537
- `<https://www.elastic.co/guide/en/elasticsearch/reference/8.16/security-api-get-role-mapping.html>`_
1537
+ `<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/security-api-get-role-mapping.html>`_
1538
1538
 
1539
1539
  :param name: The distinct name that identifies the role mapping. The name is
1540
1540
  used solely as an identifier to facilitate interaction via the API; it does
@@ -1583,7 +1583,7 @@ class SecurityClient(NamespacedClient):
1583
1583
  Get service accounts. Get a list of service accounts that match the provided
1584
1584
  path parameters.
1585
1585
 
1586
- `<https://www.elastic.co/guide/en/elasticsearch/reference/8.16/security-api-get-service-accounts.html>`_
1586
+ `<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/security-api-get-service-accounts.html>`_
1587
1587
 
1588
1588
  :param namespace: Name of the namespace. Omit this parameter to retrieve information
1589
1589
  about all service accounts. If you omit this parameter, you must also omit
@@ -1634,7 +1634,7 @@ class SecurityClient(NamespacedClient):
1634
1634
  """
1635
1635
  Get service account credentials.
1636
1636
 
1637
- `<https://www.elastic.co/guide/en/elasticsearch/reference/8.16/security-api-get-service-credentials.html>`_
1637
+ `<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/security-api-get-service-credentials.html>`_
1638
1638
 
1639
1639
  :param namespace: Name of the namespace.
1640
1640
  :param service: Name of the service name.
@@ -1702,7 +1702,7 @@ class SecurityClient(NamespacedClient):
1702
1702
  """
1703
1703
  Get a token. Create a bearer token for access without requiring basic authentication.
1704
1704
 
1705
- `<https://www.elastic.co/guide/en/elasticsearch/reference/8.16/security-api-get-token.html>`_
1705
+ `<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/security-api-get-token.html>`_
1706
1706
 
1707
1707
  :param grant_type:
1708
1708
  :param kerberos_ticket:
@@ -1761,7 +1761,7 @@ class SecurityClient(NamespacedClient):
1761
1761
  """
1762
1762
  Get users. Get information about users in the native realm and built-in users.
1763
1763
 
1764
- `<https://www.elastic.co/guide/en/elasticsearch/reference/8.16/security-api-get-user.html>`_
1764
+ `<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/security-api-get-user.html>`_
1765
1765
 
1766
1766
  :param username: An identifier for the user. You can specify multiple usernames
1767
1767
  as a comma-separated list. If you omit this parameter, the API retrieves
@@ -1812,7 +1812,7 @@ class SecurityClient(NamespacedClient):
1812
1812
  """
1813
1813
  Get user privileges.
1814
1814
 
1815
- `<https://www.elastic.co/guide/en/elasticsearch/reference/8.16/security-api-get-user-privileges.html>`_
1815
+ `<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/security-api-get-user-privileges.html>`_
1816
1816
 
1817
1817
  :param application: The name of the application. Application privileges are always
1818
1818
  associated with exactly one application. If you do not specify this parameter,
@@ -1862,7 +1862,7 @@ class SecurityClient(NamespacedClient):
1862
1862
  """
1863
1863
  Get a user profile. Get a user's profile using the unique profile ID.
1864
1864
 
1865
- `<https://www.elastic.co/guide/en/elasticsearch/reference/8.16/security-api-get-user-profile.html>`_
1865
+ `<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/security-api-get-user-profile.html>`_
1866
1866
 
1867
1867
  :param uid: A unique identifier for the user profile.
1868
1868
  :param data: List of filters for the `data` field of the profile document. To
@@ -1940,7 +1940,7 @@ class SecurityClient(NamespacedClient):
1940
1940
  API keys never expire. You can specify expiration information when you create
1941
1941
  the API keys.
1942
1942
 
1943
- `<https://www.elastic.co/guide/en/elasticsearch/reference/8.16/security-api-grant-api-key.html>`_
1943
+ `<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/security-api-grant-api-key.html>`_
1944
1944
 
1945
1945
  :param api_key: Defines the API key.
1946
1946
  :param grant_type: The type of grant. Supported grant types are: `access_token`,
@@ -2052,6 +2052,7 @@ class SecurityClient(NamespacedClient):
2052
2052
  "monitor_ml",
2053
2053
  "monitor_rollup",
2054
2054
  "monitor_snapshot",
2055
+ "monitor_stats",
2055
2056
  "monitor_text_structure",
2056
2057
  "monitor_transform",
2057
2058
  "monitor_watcher",
@@ -2081,7 +2082,7 @@ class SecurityClient(NamespacedClient):
2081
2082
  Check user privileges. Determine whether the specified user has a specified list
2082
2083
  of privileges.
2083
2084
 
2084
- `<https://www.elastic.co/guide/en/elasticsearch/reference/8.16/security-api-has-privileges.html>`_
2085
+ `<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/security-api-has-privileges.html>`_
2085
2086
 
2086
2087
  :param user: Username
2087
2088
  :param application:
@@ -2141,7 +2142,7 @@ class SecurityClient(NamespacedClient):
2141
2142
  Check user profile privileges. Determine whether the users associated with the
2142
2143
  specified user profile IDs have all the requested privileges.
2143
2144
 
2144
- `<https://www.elastic.co/guide/en/elasticsearch/reference/8.16/security-api-has-privileges-user-profile.html>`_
2145
+ `<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/security-api-has-privileges-user-profile.html>`_
2145
2146
 
2146
2147
  :param privileges:
2147
2148
  :param uids: A list of profile IDs. The privileges are checked for associated
@@ -2210,7 +2211,7 @@ class SecurityClient(NamespacedClient):
2210
2211
  by an API key, that is to say an API key invalidates itself, specify its ID in
2211
2212
  the `ids` field.
2212
2213
 
2213
- `<https://www.elastic.co/guide/en/elasticsearch/reference/8.16/security-api-invalidate-api-key.html>`_
2214
+ `<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/security-api-invalidate-api-key.html>`_
2214
2215
 
2215
2216
  :param id:
2216
2217
  :param ids: A list of API key ids. This parameter cannot be used with any of
@@ -2286,7 +2287,7 @@ class SecurityClient(NamespacedClient):
2286
2287
  24 hours. They can also be used exactly once. If you want to invalidate one or
2287
2288
  more access or refresh tokens immediately, use this invalidate token API.
2288
2289
 
2289
- `<https://www.elastic.co/guide/en/elasticsearch/reference/8.16/security-api-invalidate-token.html>`_
2290
+ `<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/security-api-invalidate-token.html>`_
2290
2291
 
2291
2292
  :param realm_name:
2292
2293
  :param refresh_token:
@@ -2346,7 +2347,7 @@ class SecurityClient(NamespacedClient):
2346
2347
  """
2347
2348
  Create or update application privileges.
2348
2349
 
2349
- `<https://www.elastic.co/guide/en/elasticsearch/reference/8.16/security-api-put-privileges.html>`_
2350
+ `<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/security-api-put-privileges.html>`_
2350
2351
 
2351
2352
  :param privileges:
2352
2353
  :param refresh: If `true` (the default) then refresh the affected shards to make
@@ -2392,6 +2393,7 @@ class SecurityClient(NamespacedClient):
2392
2393
  "global_",
2393
2394
  "indices",
2394
2395
  "metadata",
2396
+ "remote_cluster",
2395
2397
  "remote_indices",
2396
2398
  "run_as",
2397
2399
  "transient_metadata",
@@ -2452,6 +2454,7 @@ class SecurityClient(NamespacedClient):
2452
2454
  "monitor_ml",
2453
2455
  "monitor_rollup",
2454
2456
  "monitor_snapshot",
2457
+ "monitor_stats",
2455
2458
  "monitor_text_structure",
2456
2459
  "monitor_transform",
2457
2460
  "monitor_watcher",
@@ -2481,6 +2484,7 @@ class SecurityClient(NamespacedClient):
2481
2484
  refresh: t.Optional[
2482
2485
  t.Union[bool, str, t.Literal["false", "true", "wait_for"]]
2483
2486
  ] = None,
2487
+ remote_cluster: t.Optional[t.Sequence[t.Mapping[str, t.Any]]] = None,
2484
2488
  remote_indices: t.Optional[t.Sequence[t.Mapping[str, t.Any]]] = None,
2485
2489
  run_as: t.Optional[t.Sequence[str]] = None,
2486
2490
  transient_metadata: t.Optional[t.Mapping[str, t.Any]] = None,
@@ -2492,7 +2496,7 @@ class SecurityClient(NamespacedClient):
2492
2496
  The create or update roles API cannot update roles that are defined in roles
2493
2497
  files. File-based role management is not available in Elastic Serverless.
2494
2498
 
2495
- `<https://www.elastic.co/guide/en/elasticsearch/reference/8.16/security-api-put-role.html>`_
2499
+ `<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/security-api-put-role.html>`_
2496
2500
 
2497
2501
  :param name: The name of the role.
2498
2502
  :param applications: A list of application privilege entries.
@@ -2508,6 +2512,7 @@ class SecurityClient(NamespacedClient):
2508
2512
  :param refresh: If `true` (the default) then refresh the affected shards to make
2509
2513
  this operation visible to search, if `wait_for` then wait for a refresh to
2510
2514
  make this operation visible to search, if `false` then do nothing with refreshes.
2515
+ :param remote_cluster: A list of remote cluster permissions entries.
2511
2516
  :param remote_indices: A list of remote indices permissions entries.
2512
2517
  :param run_as: A list of users that the owners of this role can impersonate.
2513
2518
  *Note*: in Serverless, the run-as feature is disabled. For API compatibility,
@@ -2549,6 +2554,8 @@ class SecurityClient(NamespacedClient):
2549
2554
  __body["indices"] = indices
2550
2555
  if metadata is not None:
2551
2556
  __body["metadata"] = metadata
2557
+ if remote_cluster is not None:
2558
+ __body["remote_cluster"] = remote_cluster
2552
2559
  if remote_indices is not None:
2553
2560
  __body["remote_indices"] = remote_indices
2554
2561
  if run_as is not None:
@@ -2605,7 +2612,7 @@ class SecurityClient(NamespacedClient):
2605
2612
  roles. Roles can be created by using the create or update roles API or roles
2606
2613
  files.
2607
2614
 
2608
- `<https://www.elastic.co/guide/en/elasticsearch/reference/8.16/security-api-put-role-mapping.html>`_
2615
+ `<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/security-api-put-role-mapping.html>`_
2609
2616
 
2610
2617
  :param name: Role-mapping name
2611
2618
  :param enabled:
@@ -2694,7 +2701,7 @@ class SecurityClient(NamespacedClient):
2694
2701
  when updating an existing user. To change a user’s password without updating
2695
2702
  any other fields, use the change password API.
2696
2703
 
2697
- `<https://www.elastic.co/guide/en/elasticsearch/reference/8.16/security-api-put-user.html>`_
2704
+ `<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/security-api-put-user.html>`_
2698
2705
 
2699
2706
  :param username: The username of the User
2700
2707
  :param email:
@@ -2792,7 +2799,7 @@ class SecurityClient(NamespacedClient):
2792
2799
  Find API keys with a query. Get a paginated list of API keys and their information.
2793
2800
  You can optionally filter the results with a query.
2794
2801
 
2795
- `<https://www.elastic.co/guide/en/elasticsearch/reference/8.16/security-api-query-api-key.html>`_
2802
+ `<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/security-api-query-api-key.html>`_
2796
2803
 
2797
2804
  :param aggregations: Any aggregations to run over the corpus of returned API
2798
2805
  keys. Aggregations and queries work together. Aggregations are computed only
@@ -2919,7 +2926,7 @@ class SecurityClient(NamespacedClient):
2919
2926
  Find roles with a query. Get roles in a paginated manner. You can optionally
2920
2927
  filter the results with a query.
2921
2928
 
2922
- `<https://www.elastic.co/guide/en/elasticsearch/reference/8.16/security-api-query-role.html>`_
2929
+ `<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/security-api-query-role.html>`_
2923
2930
 
2924
2931
  :param from_: Starting document offset. By default, you cannot page through more
2925
2932
  than 10,000 hits using the from and size parameters. To page through more
@@ -3005,7 +3012,7 @@ class SecurityClient(NamespacedClient):
3005
3012
  Find users with a query. Get information for users in a paginated manner. You
3006
3013
  can optionally filter the results with a query.
3007
3014
 
3008
- `<https://www.elastic.co/guide/en/elasticsearch/reference/8.16/security-api-query-user.html>`_
3015
+ `<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/security-api-query-user.html>`_
3009
3016
 
3010
3017
  :param from_: Starting document offset. By default, you cannot page through more
3011
3018
  than 10,000 hits using the from and size parameters. To page through more
@@ -3083,7 +3090,7 @@ class SecurityClient(NamespacedClient):
3083
3090
  """
3084
3091
  Authenticate SAML. Submits a SAML response message to Elasticsearch for consumption.
3085
3092
 
3086
- `<https://www.elastic.co/guide/en/elasticsearch/reference/8.16/security-api-saml-authenticate.html>`_
3093
+ `<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/security-api-saml-authenticate.html>`_
3087
3094
 
3088
3095
  :param content: The SAML response as it was sent by the user’s browser, usually
3089
3096
  a Base64 encoded XML document.
@@ -3145,7 +3152,7 @@ class SecurityClient(NamespacedClient):
3145
3152
  """
3146
3153
  Logout of SAML completely. Verifies the logout response sent from the SAML IdP.
3147
3154
 
3148
- `<https://www.elastic.co/guide/en/elasticsearch/reference/8.16/security-api-saml-complete-logout.html>`_
3155
+ `<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/security-api-saml-complete-logout.html>`_
3149
3156
 
3150
3157
  :param ids: A json array with all the valid SAML Request Ids that the caller
3151
3158
  of the API has for the current user.
@@ -3211,7 +3218,7 @@ class SecurityClient(NamespacedClient):
3211
3218
  """
3212
3219
  Invalidate SAML. Submits a SAML LogoutRequest message to Elasticsearch for consumption.
3213
3220
 
3214
- `<https://www.elastic.co/guide/en/elasticsearch/reference/8.16/security-api-saml-invalidate.html>`_
3221
+ `<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/security-api-saml-invalidate.html>`_
3215
3222
 
3216
3223
  :param query_string: The query part of the URL that the user was redirected to
3217
3224
  by the SAML IdP to initiate the Single Logout. This query should include
@@ -3278,7 +3285,7 @@ class SecurityClient(NamespacedClient):
3278
3285
  """
3279
3286
  Logout of SAML. Submits a request to invalidate an access token and refresh token.
3280
3287
 
3281
- `<https://www.elastic.co/guide/en/elasticsearch/reference/8.16/security-api-saml-logout.html>`_
3288
+ `<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/security-api-saml-logout.html>`_
3282
3289
 
3283
3290
  :param token: The access token that was returned as a response to calling the
3284
3291
  SAML authenticate API. Alternatively, the most recent token that was received
@@ -3336,7 +3343,7 @@ class SecurityClient(NamespacedClient):
3336
3343
  Prepare SAML authentication. Creates a SAML authentication request (`<AuthnRequest>`)
3337
3344
  as a URL string, based on the configuration of the respective SAML realm in Elasticsearch.
3338
3345
 
3339
- `<https://www.elastic.co/guide/en/elasticsearch/reference/8.16/security-api-saml-prepare-authentication.html>`_
3346
+ `<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/security-api-saml-prepare-authentication.html>`_
3340
3347
 
3341
3348
  :param acs: The Assertion Consumer Service URL that matches the one of the SAML
3342
3349
  realms in Elasticsearch. The realm is used to generate the authentication
@@ -3392,7 +3399,7 @@ class SecurityClient(NamespacedClient):
3392
3399
  Create SAML service provider metadata. Generate SAML metadata for a SAML 2.0
3393
3400
  Service Provider.
3394
3401
 
3395
- `<https://www.elastic.co/guide/en/elasticsearch/reference/8.16/security-api-saml-sp-metadata.html>`_
3402
+ `<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/security-api-saml-sp-metadata.html>`_
3396
3403
 
3397
3404
  :param realm_name: The name of the SAML realm in Elasticsearch.
3398
3405
  """
@@ -3439,7 +3446,7 @@ class SecurityClient(NamespacedClient):
3439
3446
  Suggest a user profile. Get suggestions for user profiles that match specified
3440
3447
  search criteria.
3441
3448
 
3442
- `<https://www.elastic.co/guide/en/elasticsearch/reference/8.16/security-api-suggest-user-profile.html>`_
3449
+ `<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/security-api-suggest-user-profile.html>`_
3443
3450
 
3444
3451
  :param data: List of filters for the `data` field of the profile document. To
3445
3452
  return all content use `data=*`. To return a subset of content use `data=<key>`
@@ -3523,7 +3530,7 @@ class SecurityClient(NamespacedClient):
3523
3530
  not possible to use an API key as the authentication credential for this API.
3524
3531
  To update an API key, the owner user’s credentials are required.
3525
3532
 
3526
- `<https://www.elastic.co/guide/en/elasticsearch/reference/8.16/security-api-update-api-key.html>`_
3533
+ `<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/security-api-update-api-key.html>`_
3527
3534
 
3528
3535
  :param id: The ID of the API key to update.
3529
3536
  :param expiration: Expiration time for the API key.
@@ -3595,7 +3602,7 @@ class SecurityClient(NamespacedClient):
3595
3602
  Update a cross-cluster API key. Update the attributes of an existing cross-cluster
3596
3603
  API key, which is used for API key based remote cluster access.
3597
3604
 
3598
- `<https://www.elastic.co/guide/en/elasticsearch/reference/8.16/security-api-update-cross-cluster-api-key.html>`_
3605
+ `<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/security-api-update-cross-cluster-api-key.html>`_
3599
3606
 
3600
3607
  :param id: The ID of the cross-cluster API key to update.
3601
3608
  :param access: The access to be granted to this API key. The access is composed
@@ -3667,7 +3674,7 @@ class SecurityClient(NamespacedClient):
3667
3674
  Update user profile data. Update specific data for the user profile that is associated
3668
3675
  with a unique ID.
3669
3676
 
3670
- `<https://www.elastic.co/guide/en/elasticsearch/reference/8.16/security-api-update-user-profile-data.html>`_
3677
+ `<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/security-api-update-user-profile-data.html>`_
3671
3678
 
3672
3679
  :param uid: A unique identifier for the user profile.
3673
3680
  :param data: Non-searchable data that you want to associate with the user profile.
@@ -38,7 +38,7 @@ class SlmClient(NamespacedClient):
38
38
  """
39
39
  Deletes an existing snapshot lifecycle policy.
40
40
 
41
- `<https://www.elastic.co/guide/en/elasticsearch/reference/8.16/slm-api-delete-policy.html>`_
41
+ `<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/slm-api-delete-policy.html>`_
42
42
 
43
43
  :param policy_id: The id of the snapshot lifecycle policy to remove
44
44
  """
@@ -79,7 +79,7 @@ class SlmClient(NamespacedClient):
79
79
  Immediately creates a snapshot according to the lifecycle policy, without waiting
80
80
  for the scheduled time.
81
81
 
82
- `<https://www.elastic.co/guide/en/elasticsearch/reference/8.16/slm-api-execute-lifecycle.html>`_
82
+ `<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/slm-api-execute-lifecycle.html>`_
83
83
 
84
84
  :param policy_id: The id of the snapshot lifecycle policy to be executed
85
85
  """
@@ -118,7 +118,7 @@ class SlmClient(NamespacedClient):
118
118
  """
119
119
  Deletes any snapshots that are expired according to the policy's retention rules.
120
120
 
121
- `<https://www.elastic.co/guide/en/elasticsearch/reference/8.16/slm-api-execute-retention.html>`_
121
+ `<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/slm-api-execute-retention.html>`_
122
122
  """
123
123
  __path_parts: t.Dict[str, str] = {}
124
124
  __path = "/_slm/_execute_retention"
@@ -155,7 +155,7 @@ class SlmClient(NamespacedClient):
155
155
  Retrieves one or more snapshot lifecycle policy definitions and information about
156
156
  the latest snapshot attempts.
157
157
 
158
- `<https://www.elastic.co/guide/en/elasticsearch/reference/8.16/slm-api-get-policy.html>`_
158
+ `<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/slm-api-get-policy.html>`_
159
159
 
160
160
  :param policy_id: Comma-separated list of snapshot lifecycle policies to retrieve
161
161
  """
@@ -198,7 +198,7 @@ class SlmClient(NamespacedClient):
198
198
  Returns global and policy-level statistics about actions taken by snapshot lifecycle
199
199
  management.
200
200
 
201
- `<https://www.elastic.co/guide/en/elasticsearch/reference/8.16/slm-api-get-stats.html>`_
201
+ `<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/slm-api-get-stats.html>`_
202
202
  """
203
203
  __path_parts: t.Dict[str, str] = {}
204
204
  __path = "/_slm/stats"
@@ -233,7 +233,7 @@ class SlmClient(NamespacedClient):
233
233
  """
234
234
  Retrieves the status of snapshot lifecycle management (SLM).
235
235
 
236
- `<https://www.elastic.co/guide/en/elasticsearch/reference/8.16/slm-api-get-status.html>`_
236
+ `<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/slm-api-get-status.html>`_
237
237
  """
238
238
  __path_parts: t.Dict[str, str] = {}
239
239
  __path = "/_slm/status"
@@ -279,7 +279,7 @@ class SlmClient(NamespacedClient):
279
279
  """
280
280
  Creates or updates a snapshot lifecycle policy.
281
281
 
282
- `<https://www.elastic.co/guide/en/elasticsearch/reference/8.16/slm-api-put-policy.html>`_
282
+ `<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/slm-api-put-policy.html>`_
283
283
 
284
284
  :param policy_id: ID for the snapshot lifecycle policy you want to create or
285
285
  update.
@@ -356,7 +356,7 @@ class SlmClient(NamespacedClient):
356
356
  """
357
357
  Turns on snapshot lifecycle management (SLM).
358
358
 
359
- `<https://www.elastic.co/guide/en/elasticsearch/reference/8.16/slm-api-start.html>`_
359
+ `<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/slm-api-start.html>`_
360
360
  """
361
361
  __path_parts: t.Dict[str, str] = {}
362
362
  __path = "/_slm/start"
@@ -391,7 +391,7 @@ class SlmClient(NamespacedClient):
391
391
  """
392
392
  Turns off snapshot lifecycle management (SLM).
393
393
 
394
- `<https://www.elastic.co/guide/en/elasticsearch/reference/8.16/slm-api-stop.html>`_
394
+ `<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/slm-api-stop.html>`_
395
395
  """
396
396
  __path_parts: t.Dict[str, str] = {}
397
397
  __path = "/_slm/stop"