@@ -1522,13 +1522,13 @@ async def has_privileges(
15221522 t .Union [
15231523 t .List [
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 ],
15291529 t .Tuple [
15301530 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']" ,
15321532 str ,
15331533 ],
15341534 ...,
@@ -1752,13 +1752,13 @@ async def put_role(
17521752 t .Union [
17531753 t .List [
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 ],
17591759 t .Tuple [
17601760 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']" ,
17621762 str ,
17631763 ],
17641764 ...,
@@ -2453,7 +2453,6 @@ async def update_user_profile_data(
24532453 self ,
24542454 * ,
24552455 uid : str ,
2456- access : t .Optional [t .Mapping [str , t .Any ]] = None ,
24572456 data : t .Optional [t .Mapping [str , t .Any ]] = None ,
24582457 error_trace : t .Optional [bool ] = None ,
24592458 filter_path : t .Optional [
@@ -2462,6 +2461,7 @@ async def update_user_profile_data(
24622461 human : t .Optional [bool ] = None ,
24632462 if_primary_term : t .Optional [int ] = None ,
24642463 if_seq_no : t .Optional [int ] = None ,
2464+ labels : t .Optional [t .Mapping [str , t .Any ]] = None ,
24652465 pretty : t .Optional [bool ] = None ,
24662466 refresh : t .Optional [
24672467 t .Union ["t.Literal['false', 'true', 'wait_for']" , bool , str ]
@@ -2473,14 +2473,14 @@ async def update_user_profile_data(
24732473 `<https://www.elastic.co/guide/en/elasticsearch/reference/8.2/security-api-update-user-profile-data.html>`_
24742474
24752475 :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.
24782476 :param data: Non-searchable data that you want to associate with the user profile.
24792477 This field supports a nested data structure.
24802478 :param if_primary_term: Only perform the operation if the document has this primary
24812479 term.
24822480 :param if_seq_no: Only perform the operation if the document has this sequence
24832481 number.
2482+ :param labels: Searchable data that you want to associate with the user profile.
2483+ This field supports a nested data structure.
24842484 :param refresh: If 'true', Elasticsearch refreshes the affected shards to make
24852485 this operation visible to search, if 'wait_for' then wait for a refresh to
24862486 make this operation visible to search, if 'false' do nothing with refreshes.
@@ -2490,8 +2490,6 @@ async def update_user_profile_data(
24902490 __path = f"/_security/profile/{ _quote (uid )} /_data"
24912491 __body : t .Dict [str , t .Any ] = {}
24922492 __query : t .Dict [str , t .Any ] = {}
2493- if access is not None :
2494- __body ["access" ] = access
24952493 if data is not None :
24962494 __body ["data" ] = data
24972495 if error_trace is not None :
@@ -2504,6 +2502,8 @@ async def update_user_profile_data(
25042502 __query ["if_primary_term" ] = if_primary_term
25052503 if if_seq_no is not None :
25062504 __query ["if_seq_no" ] = if_seq_no
2505+ if labels is not None :
2506+ __body ["labels" ] = labels
25072507 if pretty is not None :
25082508 __query ["pretty" ] = pretty
25092509 if refresh is not None :
0 commit comments