@@ -1516,13 +1516,13 @@ async def has_privileges(
1516
1516
t .Union [
1517
1517
t .List [
1518
1518
t .Union [
1519
- "t.Literal['all', 'cancel_task', 'create_snapshot', 'grant_api_key', 'manage', 'manage_api_key', 'manage_ccr', 'manage_ilm', 'manage_index_templates', 'manage_ingest_pipelines', 'manage_logstash_pipelines', 'manage_ml', 'manage_oidc', 'manage_own_api_key', 'manage_pipeline', 'manage_rollup', 'manage_saml', 'manage_security', 'manage_service_account', 'manage_slm', 'manage_token', 'manage_transform', 'manage_watcher', 'monitor', 'monitor_ml', 'monitor_rollup', 'monitor_snapshot', 'monitor_text_structure', 'monitor_transform', 'monitor_watcher', 'read_ccr', 'read_ilm', 'read_pipeline', 'read_slm', 'transport_client']" ,
1519
+ "t.Literal['all', 'cancel_task', 'create_snapshot', 'grant_api_key', 'manage', 'manage_api_key', 'manage_ccr', 'manage_enrich', ' manage_ilm', 'manage_index_templates', 'manage_ingest_pipelines', 'manage_logstash_pipelines', 'manage_ml', 'manage_oidc', 'manage_own_api_key', 'manage_pipeline', 'manage_rollup', 'manage_saml', 'manage_security', 'manage_service_account', 'manage_slm', 'manage_token', 'manage_transform', 'manage_watcher', 'monitor', 'monitor_ml', 'monitor_rollup', 'monitor_snapshot', 'monitor_text_structure', 'monitor_transform', 'monitor_watcher', 'read_ccr', 'read_ilm', 'read_pipeline', 'read_slm', 'transport_client']" ,
1520
1520
str ,
1521
1521
]
1522
1522
],
1523
1523
t .Tuple [
1524
1524
t .Union [
1525
- "t.Literal['all', 'cancel_task', 'create_snapshot', 'grant_api_key', 'manage', 'manage_api_key', 'manage_ccr', 'manage_ilm', 'manage_index_templates', 'manage_ingest_pipelines', 'manage_logstash_pipelines', 'manage_ml', 'manage_oidc', 'manage_own_api_key', 'manage_pipeline', 'manage_rollup', 'manage_saml', 'manage_security', 'manage_service_account', 'manage_slm', 'manage_token', 'manage_transform', 'manage_watcher', 'monitor', 'monitor_ml', 'monitor_rollup', 'monitor_snapshot', 'monitor_text_structure', 'monitor_transform', 'monitor_watcher', 'read_ccr', 'read_ilm', 'read_pipeline', 'read_slm', 'transport_client']" ,
1525
+ "t.Literal['all', 'cancel_task', 'create_snapshot', 'grant_api_key', 'manage', 'manage_api_key', 'manage_ccr', 'manage_enrich', ' manage_ilm', 'manage_index_templates', 'manage_ingest_pipelines', 'manage_logstash_pipelines', 'manage_ml', 'manage_oidc', 'manage_own_api_key', 'manage_pipeline', 'manage_rollup', 'manage_saml', 'manage_security', 'manage_service_account', 'manage_slm', 'manage_token', 'manage_transform', 'manage_watcher', 'monitor', 'monitor_ml', 'monitor_rollup', 'monitor_snapshot', 'monitor_text_structure', 'monitor_transform', 'monitor_watcher', 'read_ccr', 'read_ilm', 'read_pipeline', 'read_slm', 'transport_client']" ,
1526
1526
str ,
1527
1527
],
1528
1528
...,
@@ -1746,13 +1746,13 @@ async def put_role(
1746
1746
t .Union [
1747
1747
t .List [
1748
1748
t .Union [
1749
- "t.Literal['all', 'cancel_task', 'create_snapshot', 'grant_api_key', 'manage', 'manage_api_key', 'manage_ccr', 'manage_ilm', 'manage_index_templates', 'manage_ingest_pipelines', 'manage_logstash_pipelines', 'manage_ml', 'manage_oidc', 'manage_own_api_key', 'manage_pipeline', 'manage_rollup', 'manage_saml', 'manage_security', 'manage_service_account', 'manage_slm', 'manage_token', 'manage_transform', 'manage_watcher', 'monitor', 'monitor_ml', 'monitor_rollup', 'monitor_snapshot', 'monitor_text_structure', 'monitor_transform', 'monitor_watcher', 'read_ccr', 'read_ilm', 'read_pipeline', 'read_slm', 'transport_client']" ,
1749
+ "t.Literal['all', 'cancel_task', 'create_snapshot', 'grant_api_key', 'manage', 'manage_api_key', 'manage_ccr', 'manage_enrich', ' manage_ilm', 'manage_index_templates', 'manage_ingest_pipelines', 'manage_logstash_pipelines', 'manage_ml', 'manage_oidc', 'manage_own_api_key', 'manage_pipeline', 'manage_rollup', 'manage_saml', 'manage_security', 'manage_service_account', 'manage_slm', 'manage_token', 'manage_transform', 'manage_watcher', 'monitor', 'monitor_ml', 'monitor_rollup', 'monitor_snapshot', 'monitor_text_structure', 'monitor_transform', 'monitor_watcher', 'read_ccr', 'read_ilm', 'read_pipeline', 'read_slm', 'transport_client']" ,
1750
1750
str ,
1751
1751
]
1752
1752
],
1753
1753
t .Tuple [
1754
1754
t .Union [
1755
- "t.Literal['all', 'cancel_task', 'create_snapshot', 'grant_api_key', 'manage', 'manage_api_key', 'manage_ccr', 'manage_ilm', 'manage_index_templates', 'manage_ingest_pipelines', 'manage_logstash_pipelines', 'manage_ml', 'manage_oidc', 'manage_own_api_key', 'manage_pipeline', 'manage_rollup', 'manage_saml', 'manage_security', 'manage_service_account', 'manage_slm', 'manage_token', 'manage_transform', 'manage_watcher', 'monitor', 'monitor_ml', 'monitor_rollup', 'monitor_snapshot', 'monitor_text_structure', 'monitor_transform', 'monitor_watcher', 'read_ccr', 'read_ilm', 'read_pipeline', 'read_slm', 'transport_client']" ,
1755
+ "t.Literal['all', 'cancel_task', 'create_snapshot', 'grant_api_key', 'manage', 'manage_api_key', 'manage_ccr', 'manage_enrich', ' manage_ilm', 'manage_index_templates', 'manage_ingest_pipelines', 'manage_logstash_pipelines', 'manage_ml', 'manage_oidc', 'manage_own_api_key', 'manage_pipeline', 'manage_rollup', 'manage_saml', 'manage_security', 'manage_service_account', 'manage_slm', 'manage_token', 'manage_transform', 'manage_watcher', 'monitor', 'monitor_ml', 'monitor_rollup', 'monitor_snapshot', 'monitor_text_structure', 'monitor_transform', 'monitor_watcher', 'read_ccr', 'read_ilm', 'read_pipeline', 'read_slm', 'transport_client']" ,
1756
1756
str ,
1757
1757
],
1758
1758
...,
@@ -2447,7 +2447,6 @@ async def update_user_profile_data(
2447
2447
self ,
2448
2448
* ,
2449
2449
uid : str ,
2450
- access : t .Optional [t .Mapping [str , t .Any ]] = None ,
2451
2450
data : t .Optional [t .Mapping [str , t .Any ]] = None ,
2452
2451
error_trace : t .Optional [bool ] = None ,
2453
2452
filter_path : t .Optional [
@@ -2456,6 +2455,7 @@ async def update_user_profile_data(
2456
2455
human : t .Optional [bool ] = None ,
2457
2456
if_primary_term : t .Optional [int ] = None ,
2458
2457
if_seq_no : t .Optional [int ] = None ,
2458
+ labels : t .Optional [t .Mapping [str , t .Any ]] = None ,
2459
2459
pretty : t .Optional [bool ] = None ,
2460
2460
refresh : t .Optional [
2461
2461
t .Union ["t.Literal['false', 'true', 'wait_for']" , bool , str ]
@@ -2467,14 +2467,14 @@ async def update_user_profile_data(
2467
2467
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.3/security-api-update-user-profile-data.html>`_
2468
2468
2469
2469
:param uid: A unique identifier for the user profile.
2470
- :param access: Searchable data that you want to associate with the user profile.
2471
- This field supports a nested data structure.
2472
2470
:param data: Non-searchable data that you want to associate with the user profile.
2473
2471
This field supports a nested data structure.
2474
2472
:param if_primary_term: Only perform the operation if the document has this primary
2475
2473
term.
2476
2474
:param if_seq_no: Only perform the operation if the document has this sequence
2477
2475
number.
2476
+ :param labels: Searchable data that you want to associate with the user profile.
2477
+ This field supports a nested data structure.
2478
2478
:param refresh: If 'true', Elasticsearch refreshes the affected shards to make
2479
2479
this operation visible to search, if 'wait_for' then wait for a refresh to
2480
2480
make this operation visible to search, if 'false' do nothing with refreshes.
@@ -2484,8 +2484,6 @@ async def update_user_profile_data(
2484
2484
__path = f"/_security/profile/{ _quote (uid )} /_data"
2485
2485
__body : t .Dict [str , t .Any ] = {}
2486
2486
__query : t .Dict [str , t .Any ] = {}
2487
- if access is not None :
2488
- __body ["access" ] = access
2489
2487
if data is not None :
2490
2488
__body ["data" ] = data
2491
2489
if error_trace is not None :
@@ -2498,6 +2496,8 @@ async def update_user_profile_data(
2498
2496
__query ["if_primary_term" ] = if_primary_term
2499
2497
if if_seq_no is not None :
2500
2498
__query ["if_seq_no" ] = if_seq_no
2499
+ if labels is not None :
2500
+ __body ["labels" ] = labels
2501
2501
if pretty is not None :
2502
2502
__query ["pretty" ] = pretty
2503
2503
if refresh is not None :
0 commit comments