@@ -1516,13 +1516,13 @@ async def has_privileges(
15161516 t .Union [
15171517 t .List [
15181518 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']" ,
15201520 str ,
15211521 ]
15221522 ],
15231523 t .Tuple [
15241524 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']" ,
15261526 str ,
15271527 ],
15281528 ...,
@@ -1746,13 +1746,13 @@ async def put_role(
17461746 t .Union [
17471747 t .List [
17481748 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']" ,
17501750 str ,
17511751 ]
17521752 ],
17531753 t .Tuple [
17541754 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']" ,
17561756 str ,
17571757 ],
17581758 ...,
@@ -2447,7 +2447,6 @@ async def update_user_profile_data(
24472447 self ,
24482448 * ,
24492449 uid : str ,
2450- access : t .Optional [t .Mapping [str , t .Any ]] = None ,
24512450 data : t .Optional [t .Mapping [str , t .Any ]] = None ,
24522451 error_trace : t .Optional [bool ] = None ,
24532452 filter_path : t .Optional [
@@ -2456,6 +2455,7 @@ async def update_user_profile_data(
24562455 human : t .Optional [bool ] = None ,
24572456 if_primary_term : t .Optional [int ] = None ,
24582457 if_seq_no : t .Optional [int ] = None ,
2458+ labels : t .Optional [t .Mapping [str , t .Any ]] = None ,
24592459 pretty : t .Optional [bool ] = None ,
24602460 refresh : t .Optional [
24612461 t .Union ["t.Literal['false', 'true', 'wait_for']" , bool , str ]
@@ -2467,14 +2467,14 @@ async def update_user_profile_data(
24672467 `<https://www.elastic.co/guide/en/elasticsearch/reference/8.3/security-api-update-user-profile-data.html>`_
24682468
24692469 :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.
24722470 :param data: Non-searchable data that you want to associate with the user profile.
24732471 This field supports a nested data structure.
24742472 :param if_primary_term: Only perform the operation if the document has this primary
24752473 term.
24762474 :param if_seq_no: Only perform the operation if the document has this sequence
24772475 number.
2476+ :param labels: Searchable data that you want to associate with the user profile.
2477+ This field supports a nested data structure.
24782478 :param refresh: If 'true', Elasticsearch refreshes the affected shards to make
24792479 this operation visible to search, if 'wait_for' then wait for a refresh to
24802480 make this operation visible to search, if 'false' do nothing with refreshes.
@@ -2484,8 +2484,6 @@ async def update_user_profile_data(
24842484 __path = f"/_security/profile/{ _quote (uid )} /_data"
24852485 __body : t .Dict [str , t .Any ] = {}
24862486 __query : t .Dict [str , t .Any ] = {}
2487- if access is not None :
2488- __body ["access" ] = access
24892487 if data is not None :
24902488 __body ["data" ] = data
24912489 if error_trace is not None :
@@ -2498,6 +2496,8 @@ async def update_user_profile_data(
24982496 __query ["if_primary_term" ] = if_primary_term
24992497 if if_seq_no is not None :
25002498 __query ["if_seq_no" ] = if_seq_no
2499+ if labels is not None :
2500+ __body ["labels" ] = labels
25012501 if pretty is not None :
25022502 __query ["pretty" ] = pretty
25032503 if refresh is not None :
0 commit comments