@@ -1522,13 +1522,13 @@ async def has_privileges(
1522
1522
t .Union [
1523
1523
t .List [
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
],
1529
1529
t .Tuple [
1530
1530
t .Union [
1531
- "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']" ,
1531
+ "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']" ,
1532
1532
str ,
1533
1533
],
1534
1534
...,
@@ -1752,13 +1752,13 @@ async def put_role(
1752
1752
t .Union [
1753
1753
t .List [
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
],
1759
1759
t .Tuple [
1760
1760
t .Union [
1761
- "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']" ,
1761
+ "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']" ,
1762
1762
str ,
1763
1763
],
1764
1764
...,
@@ -2453,7 +2453,6 @@ async def update_user_profile_data(
2453
2453
self ,
2454
2454
* ,
2455
2455
uid : str ,
2456
- access : t .Optional [t .Mapping [str , t .Any ]] = None ,
2457
2456
data : t .Optional [t .Mapping [str , t .Any ]] = None ,
2458
2457
error_trace : t .Optional [bool ] = None ,
2459
2458
filter_path : t .Optional [
@@ -2462,6 +2461,7 @@ async def update_user_profile_data(
2462
2461
human : t .Optional [bool ] = None ,
2463
2462
if_primary_term : t .Optional [int ] = None ,
2464
2463
if_seq_no : t .Optional [int ] = None ,
2464
+ labels : t .Optional [t .Mapping [str , t .Any ]] = None ,
2465
2465
pretty : t .Optional [bool ] = None ,
2466
2466
refresh : t .Optional [
2467
2467
t .Union ["t.Literal['false', 'true', 'wait_for']" , bool , str ]
@@ -2473,14 +2473,14 @@ async def update_user_profile_data(
2473
2473
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.2/security-api-update-user-profile-data.html>`_
2474
2474
2475
2475
:param uid: A unique identifier for the user profile.
2476
- :param access: Searchable data that you want to associate with the user profile.
2477
- This field supports a nested data structure.
2478
2476
:param data: Non-searchable data that you want to associate with the user profile.
2479
2477
This field supports a nested data structure.
2480
2478
:param if_primary_term: Only perform the operation if the document has this primary
2481
2479
term.
2482
2480
:param if_seq_no: Only perform the operation if the document has this sequence
2483
2481
number.
2482
+ :param labels: Searchable data that you want to associate with the user profile.
2483
+ This field supports a nested data structure.
2484
2484
:param refresh: If 'true', Elasticsearch refreshes the affected shards to make
2485
2485
this operation visible to search, if 'wait_for' then wait for a refresh to
2486
2486
make this operation visible to search, if 'false' do nothing with refreshes.
@@ -2490,8 +2490,6 @@ async def update_user_profile_data(
2490
2490
__path = f"/_security/profile/{ _quote (uid )} /_data"
2491
2491
__body : t .Dict [str , t .Any ] = {}
2492
2492
__query : t .Dict [str , t .Any ] = {}
2493
- if access is not None :
2494
- __body ["access" ] = access
2495
2493
if data is not None :
2496
2494
__body ["data" ] = data
2497
2495
if error_trace is not None :
@@ -2504,6 +2502,8 @@ async def update_user_profile_data(
2504
2502
__query ["if_primary_term" ] = if_primary_term
2505
2503
if if_seq_no is not None :
2506
2504
__query ["if_seq_no" ] = if_seq_no
2505
+ if labels is not None :
2506
+ __body ["labels" ] = labels
2507
2507
if pretty is not None :
2508
2508
__query ["pretty" ] = pretty
2509
2509
if refresh is not None :
0 commit comments