From 32de9188591354a4a50d44db8d98d895fdcc4b9c Mon Sep 17 00:00:00 2001 From: API Engineering Date: Fri, 1 Aug 2025 10:24:52 +0000 Subject: [PATCH] [bot] Updated client based on openapi-3a64316/clientgen --- DO_OPENAPI_COMMIT_SHA.txt | 2 +- src/pydo/aio/operations/_operations.py | 1208 +++++++++++++++++++++- src/pydo/operations/_operations.py | 1283 +++++++++++++++++++++++- 3 files changed, 2490 insertions(+), 3 deletions(-) diff --git a/DO_OPENAPI_COMMIT_SHA.txt b/DO_OPENAPI_COMMIT_SHA.txt index 7ab1216..6350e6c 100644 --- a/DO_OPENAPI_COMMIT_SHA.txt +++ b/DO_OPENAPI_COMMIT_SHA.txt @@ -1 +1 @@ -7626d23 +3a64316 diff --git a/src/pydo/aio/operations/_operations.py b/src/pydo/aio/operations/_operations.py index d9f9683..d889aec 100644 --- a/src/pydo/aio/operations/_operations.py +++ b/src/pydo/aio/operations/_operations.py @@ -229,6 +229,7 @@ build_genai_create_knowledge_base_data_source_request, build_genai_create_knowledge_base_request, build_genai_create_model_api_key_request, + build_genai_create_oauth2_dropbox_tokens_request, build_genai_create_openai_api_key_request, build_genai_create_workspace_request, build_genai_delete_agent_api_key_request, @@ -244,6 +245,7 @@ build_genai_detach_knowledge_base_request, build_genai_get_agent_children_request, build_genai_get_agent_request, + build_genai_get_agent_usage_request, build_genai_get_anthropic_api_key_request, build_genai_get_evaluation_run_prompt_results_request, build_genai_get_evaluation_run_request, @@ -251,6 +253,7 @@ build_genai_get_evaluation_test_case_request, build_genai_get_indexing_job_request, build_genai_get_knowledge_base_request, + build_genai_get_oauth2_url_request, build_genai_get_openai_api_key_request, build_genai_get_workspace_request, build_genai_list_agent_api_keys_request, @@ -181056,6 +181059,12 @@ async def list_agents( Number of tokens. "total_datasources": 0, # Optional. Number of datasources being indexed. + "total_items_failed": "str", + # Optional. Total Items Failed. + "total_items_indexed": "str", + # Optional. Total Items Indexed. + "total_items_skipped": "str", + # Optional. Total Items Skipped. "updated_at": "2020-02-20 00:00:00", # Optional. Last modified. "uuid": "str" # Optional. @@ -181504,6 +181513,12 @@ async def create_agent( "tokens": 0, # Optional. Number of tokens. "total_datasources": 0, # Optional. Number of datasources being indexed. + "total_items_failed": "str", # Optional. + Total Items Failed. + "total_items_indexed": "str", # Optional. + Total Items Indexed. + "total_items_skipped": "str", # Optional. + Total Items Skipped. "updated_at": "2020-02-20 00:00:00", # Optional. Last modified. "uuid": "str" # Optional. Unique id. @@ -181528,6 +181543,10 @@ async def create_agent( identifier. "galileo_project_name": "str", # Optional. Name of the Galileo project. + "insights_enabled": bool, # Optional. Whether insights are + enabled. + "insights_enabled_at": "2020-02-20 00:00:00", # Optional. + Timestamp when insights were enabled. "log_stream_id": "str", # Optional. Identifier for the log stream. "log_stream_name": "str" # Optional. Name of the log stream. @@ -181718,6 +181737,12 @@ async def create_agent( tokens. "total_datasources": 0, # Optional. Number of datasources being indexed. + "total_items_failed": "str", # + Optional. Total Items Failed. + "total_items_indexed": "str", # + Optional. Total Items Indexed. + "total_items_skipped": "str", # + Optional. Total Items Skipped. "updated_at": "2020-02-20 00:00:00", # Optional. Last modified. "uuid": "str" # Optional. Unique id. @@ -182137,6 +182162,12 @@ async def create_agent( "tokens": 0, # Optional. Number of tokens. "total_datasources": 0, # Optional. Number of datasources being indexed. + "total_items_failed": "str", # Optional. + Total Items Failed. + "total_items_indexed": "str", # Optional. + Total Items Indexed. + "total_items_skipped": "str", # Optional. + Total Items Skipped. "updated_at": "2020-02-20 00:00:00", # Optional. Last modified. "uuid": "str" # Optional. Unique id. @@ -182161,6 +182192,10 @@ async def create_agent( identifier. "galileo_project_name": "str", # Optional. Name of the Galileo project. + "insights_enabled": bool, # Optional. Whether insights are + enabled. + "insights_enabled_at": "2020-02-20 00:00:00", # Optional. + Timestamp when insights were enabled. "log_stream_id": "str", # Optional. Identifier for the log stream. "log_stream_name": "str" # Optional. Name of the log stream. @@ -182351,6 +182386,12 @@ async def create_agent( tokens. "total_datasources": 0, # Optional. Number of datasources being indexed. + "total_items_failed": "str", # + Optional. Total Items Failed. + "total_items_indexed": "str", # + Optional. Total Items Indexed. + "total_items_skipped": "str", # + Optional. Total Items Skipped. "updated_at": "2020-02-20 00:00:00", # Optional. Last modified. "uuid": "str" # Optional. Unique id. @@ -182790,6 +182831,12 @@ async def create_agent( "tokens": 0, # Optional. Number of tokens. "total_datasources": 0, # Optional. Number of datasources being indexed. + "total_items_failed": "str", # Optional. + Total Items Failed. + "total_items_indexed": "str", # Optional. + Total Items Indexed. + "total_items_skipped": "str", # Optional. + Total Items Skipped. "updated_at": "2020-02-20 00:00:00", # Optional. Last modified. "uuid": "str" # Optional. Unique id. @@ -182814,6 +182861,10 @@ async def create_agent( identifier. "galileo_project_name": "str", # Optional. Name of the Galileo project. + "insights_enabled": bool, # Optional. Whether insights are + enabled. + "insights_enabled_at": "2020-02-20 00:00:00", # Optional. + Timestamp when insights were enabled. "log_stream_id": "str", # Optional. Identifier for the log stream. "log_stream_name": "str" # Optional. Name of the log stream. @@ -183004,6 +183055,12 @@ async def create_agent( tokens. "total_datasources": 0, # Optional. Number of datasources being indexed. + "total_items_failed": "str", # + Optional. Total Items Failed. + "total_items_indexed": "str", # + Optional. Total Items Indexed. + "total_items_skipped": "str", # + Optional. Total Items Skipped. "updated_at": "2020-02-20 00:00:00", # Optional. Last modified. "uuid": "str" # Optional. Unique id. @@ -184456,6 +184513,12 @@ async def attach_agent_function( "tokens": 0, # Optional. Number of tokens. "total_datasources": 0, # Optional. Number of datasources being indexed. + "total_items_failed": "str", # Optional. + Total Items Failed. + "total_items_indexed": "str", # Optional. + Total Items Indexed. + "total_items_skipped": "str", # Optional. + Total Items Skipped. "updated_at": "2020-02-20 00:00:00", # Optional. Last modified. "uuid": "str" # Optional. Unique id. @@ -184480,6 +184543,10 @@ async def attach_agent_function( identifier. "galileo_project_name": "str", # Optional. Name of the Galileo project. + "insights_enabled": bool, # Optional. Whether insights are + enabled. + "insights_enabled_at": "2020-02-20 00:00:00", # Optional. + Timestamp when insights were enabled. "log_stream_id": "str", # Optional. Identifier for the log stream. "log_stream_name": "str" # Optional. Name of the log stream. @@ -184670,6 +184737,12 @@ async def attach_agent_function( tokens. "total_datasources": 0, # Optional. Number of datasources being indexed. + "total_items_failed": "str", # + Optional. Total Items Failed. + "total_items_indexed": "str", # + Optional. Total Items Indexed. + "total_items_skipped": "str", # + Optional. Total Items Skipped. "updated_at": "2020-02-20 00:00:00", # Optional. Last modified. "uuid": "str" # Optional. Unique id. @@ -185092,6 +185165,12 @@ async def attach_agent_function( "tokens": 0, # Optional. Number of tokens. "total_datasources": 0, # Optional. Number of datasources being indexed. + "total_items_failed": "str", # Optional. + Total Items Failed. + "total_items_indexed": "str", # Optional. + Total Items Indexed. + "total_items_skipped": "str", # Optional. + Total Items Skipped. "updated_at": "2020-02-20 00:00:00", # Optional. Last modified. "uuid": "str" # Optional. Unique id. @@ -185116,6 +185195,10 @@ async def attach_agent_function( identifier. "galileo_project_name": "str", # Optional. Name of the Galileo project. + "insights_enabled": bool, # Optional. Whether insights are + enabled. + "insights_enabled_at": "2020-02-20 00:00:00", # Optional. + Timestamp when insights were enabled. "log_stream_id": "str", # Optional. Identifier for the log stream. "log_stream_name": "str" # Optional. Name of the log stream. @@ -185306,6 +185389,12 @@ async def attach_agent_function( tokens. "total_datasources": 0, # Optional. Number of datasources being indexed. + "total_items_failed": "str", # + Optional. Total Items Failed. + "total_items_indexed": "str", # + Optional. Total Items Indexed. + "total_items_skipped": "str", # + Optional. Total Items Skipped. "updated_at": "2020-02-20 00:00:00", # Optional. Last modified. "uuid": "str" # Optional. Unique id. @@ -185738,6 +185827,12 @@ async def attach_agent_function( "tokens": 0, # Optional. Number of tokens. "total_datasources": 0, # Optional. Number of datasources being indexed. + "total_items_failed": "str", # Optional. + Total Items Failed. + "total_items_indexed": "str", # Optional. + Total Items Indexed. + "total_items_skipped": "str", # Optional. + Total Items Skipped. "updated_at": "2020-02-20 00:00:00", # Optional. Last modified. "uuid": "str" # Optional. Unique id. @@ -185762,6 +185857,10 @@ async def attach_agent_function( identifier. "galileo_project_name": "str", # Optional. Name of the Galileo project. + "insights_enabled": bool, # Optional. Whether insights are + enabled. + "insights_enabled_at": "2020-02-20 00:00:00", # Optional. + Timestamp when insights were enabled. "log_stream_id": "str", # Optional. Identifier for the log stream. "log_stream_name": "str" # Optional. Name of the log stream. @@ -185952,6 +186051,12 @@ async def attach_agent_function( tokens. "total_datasources": 0, # Optional. Number of datasources being indexed. + "total_items_failed": "str", # + Optional. Total Items Failed. + "total_items_indexed": "str", # + Optional. Total Items Indexed. + "total_items_skipped": "str", # + Optional. Total Items Skipped. "updated_at": "2020-02-20 00:00:00", # Optional. Last modified. "uuid": "str" # Optional. Unique id. @@ -186487,6 +186592,12 @@ async def update_agent_function( "tokens": 0, # Optional. Number of tokens. "total_datasources": 0, # Optional. Number of datasources being indexed. + "total_items_failed": "str", # Optional. + Total Items Failed. + "total_items_indexed": "str", # Optional. + Total Items Indexed. + "total_items_skipped": "str", # Optional. + Total Items Skipped. "updated_at": "2020-02-20 00:00:00", # Optional. Last modified. "uuid": "str" # Optional. Unique id. @@ -186511,6 +186622,10 @@ async def update_agent_function( identifier. "galileo_project_name": "str", # Optional. Name of the Galileo project. + "insights_enabled": bool, # Optional. Whether insights are + enabled. + "insights_enabled_at": "2020-02-20 00:00:00", # Optional. + Timestamp when insights were enabled. "log_stream_id": "str", # Optional. Identifier for the log stream. "log_stream_name": "str" # Optional. Name of the log stream. @@ -186701,6 +186816,12 @@ async def update_agent_function( tokens. "total_datasources": 0, # Optional. Number of datasources being indexed. + "total_items_failed": "str", # + Optional. Total Items Failed. + "total_items_indexed": "str", # + Optional. Total Items Indexed. + "total_items_skipped": "str", # + Optional. Total Items Skipped. "updated_at": "2020-02-20 00:00:00", # Optional. Last modified. "uuid": "str" # Optional. Unique id. @@ -187126,6 +187247,12 @@ async def update_agent_function( "tokens": 0, # Optional. Number of tokens. "total_datasources": 0, # Optional. Number of datasources being indexed. + "total_items_failed": "str", # Optional. + Total Items Failed. + "total_items_indexed": "str", # Optional. + Total Items Indexed. + "total_items_skipped": "str", # Optional. + Total Items Skipped. "updated_at": "2020-02-20 00:00:00", # Optional. Last modified. "uuid": "str" # Optional. Unique id. @@ -187150,6 +187277,10 @@ async def update_agent_function( identifier. "galileo_project_name": "str", # Optional. Name of the Galileo project. + "insights_enabled": bool, # Optional. Whether insights are + enabled. + "insights_enabled_at": "2020-02-20 00:00:00", # Optional. + Timestamp when insights were enabled. "log_stream_id": "str", # Optional. Identifier for the log stream. "log_stream_name": "str" # Optional. Name of the log stream. @@ -187340,6 +187471,12 @@ async def update_agent_function( tokens. "total_datasources": 0, # Optional. Number of datasources being indexed. + "total_items_failed": "str", # + Optional. Total Items Failed. + "total_items_indexed": "str", # + Optional. Total Items Indexed. + "total_items_skipped": "str", # + Optional. Total Items Skipped. "updated_at": "2020-02-20 00:00:00", # Optional. Last modified. "uuid": "str" # Optional. Unique id. @@ -187776,6 +187913,12 @@ async def update_agent_function( "tokens": 0, # Optional. Number of tokens. "total_datasources": 0, # Optional. Number of datasources being indexed. + "total_items_failed": "str", # Optional. + Total Items Failed. + "total_items_indexed": "str", # Optional. + Total Items Indexed. + "total_items_skipped": "str", # Optional. + Total Items Skipped. "updated_at": "2020-02-20 00:00:00", # Optional. Last modified. "uuid": "str" # Optional. Unique id. @@ -187800,6 +187943,10 @@ async def update_agent_function( identifier. "galileo_project_name": "str", # Optional. Name of the Galileo project. + "insights_enabled": bool, # Optional. Whether insights are + enabled. + "insights_enabled_at": "2020-02-20 00:00:00", # Optional. + Timestamp when insights were enabled. "log_stream_id": "str", # Optional. Identifier for the log stream. "log_stream_name": "str" # Optional. Name of the log stream. @@ -187990,6 +188137,12 @@ async def update_agent_function( tokens. "total_datasources": 0, # Optional. Number of datasources being indexed. + "total_items_failed": "str", # + Optional. Total Items Failed. + "total_items_indexed": "str", # + Optional. Total Items Indexed. + "total_items_skipped": "str", # + Optional. Total Items Skipped. "updated_at": "2020-02-20 00:00:00", # Optional. Last modified. "uuid": "str" # Optional. Unique id. @@ -188500,6 +188653,12 @@ async def detach_agent_function( "tokens": 0, # Optional. Number of tokens. "total_datasources": 0, # Optional. Number of datasources being indexed. + "total_items_failed": "str", # Optional. + Total Items Failed. + "total_items_indexed": "str", # Optional. + Total Items Indexed. + "total_items_skipped": "str", # Optional. + Total Items Skipped. "updated_at": "2020-02-20 00:00:00", # Optional. Last modified. "uuid": "str" # Optional. Unique id. @@ -188524,6 +188683,10 @@ async def detach_agent_function( identifier. "galileo_project_name": "str", # Optional. Name of the Galileo project. + "insights_enabled": bool, # Optional. Whether insights are + enabled. + "insights_enabled_at": "2020-02-20 00:00:00", # Optional. + Timestamp when insights were enabled. "log_stream_id": "str", # Optional. Identifier for the log stream. "log_stream_name": "str" # Optional. Name of the log stream. @@ -188714,6 +188877,12 @@ async def detach_agent_function( tokens. "total_datasources": 0, # Optional. Number of datasources being indexed. + "total_items_failed": "str", # + Optional. Total Items Failed. + "total_items_indexed": "str", # + Optional. Total Items Indexed. + "total_items_skipped": "str", # + Optional. Total Items Skipped. "updated_at": "2020-02-20 00:00:00", # Optional. Last modified. "uuid": "str" # Optional. Unique id. @@ -189202,6 +189371,12 @@ async def attach_knowledge_bases(self, agent_uuid: str, **kwargs: Any) -> JSON: "tokens": 0, # Optional. Number of tokens. "total_datasources": 0, # Optional. Number of datasources being indexed. + "total_items_failed": "str", # Optional. + Total Items Failed. + "total_items_indexed": "str", # Optional. + Total Items Indexed. + "total_items_skipped": "str", # Optional. + Total Items Skipped. "updated_at": "2020-02-20 00:00:00", # Optional. Last modified. "uuid": "str" # Optional. Unique id. @@ -189226,6 +189401,10 @@ async def attach_knowledge_bases(self, agent_uuid: str, **kwargs: Any) -> JSON: identifier. "galileo_project_name": "str", # Optional. Name of the Galileo project. + "insights_enabled": bool, # Optional. Whether insights are + enabled. + "insights_enabled_at": "2020-02-20 00:00:00", # Optional. + Timestamp when insights were enabled. "log_stream_id": "str", # Optional. Identifier for the log stream. "log_stream_name": "str" # Optional. Name of the log stream. @@ -189416,6 +189595,12 @@ async def attach_knowledge_bases(self, agent_uuid: str, **kwargs: Any) -> JSON: tokens. "total_datasources": 0, # Optional. Number of datasources being indexed. + "total_items_failed": "str", # + Optional. Total Items Failed. + "total_items_indexed": "str", # + Optional. Total Items Indexed. + "total_items_skipped": "str", # + Optional. Total Items Skipped. "updated_at": "2020-02-20 00:00:00", # Optional. Last modified. "uuid": "str" # Optional. Unique id. @@ -189907,6 +190092,12 @@ async def attach_knowledge_base( "tokens": 0, # Optional. Number of tokens. "total_datasources": 0, # Optional. Number of datasources being indexed. + "total_items_failed": "str", # Optional. + Total Items Failed. + "total_items_indexed": "str", # Optional. + Total Items Indexed. + "total_items_skipped": "str", # Optional. + Total Items Skipped. "updated_at": "2020-02-20 00:00:00", # Optional. Last modified. "uuid": "str" # Optional. Unique id. @@ -189931,6 +190122,10 @@ async def attach_knowledge_base( identifier. "galileo_project_name": "str", # Optional. Name of the Galileo project. + "insights_enabled": bool, # Optional. Whether insights are + enabled. + "insights_enabled_at": "2020-02-20 00:00:00", # Optional. + Timestamp when insights were enabled. "log_stream_id": "str", # Optional. Identifier for the log stream. "log_stream_name": "str" # Optional. Name of the log stream. @@ -190121,6 +190316,12 @@ async def attach_knowledge_base( tokens. "total_datasources": 0, # Optional. Number of datasources being indexed. + "total_items_failed": "str", # + Optional. Total Items Failed. + "total_items_indexed": "str", # + Optional. Total Items Indexed. + "total_items_skipped": "str", # + Optional. Total Items Skipped. "updated_at": "2020-02-20 00:00:00", # Optional. Last modified. "uuid": "str" # Optional. Unique id. @@ -190613,6 +190814,12 @@ async def detach_knowledge_base( "tokens": 0, # Optional. Number of tokens. "total_datasources": 0, # Optional. Number of datasources being indexed. + "total_items_failed": "str", # Optional. + Total Items Failed. + "total_items_indexed": "str", # Optional. + Total Items Indexed. + "total_items_skipped": "str", # Optional. + Total Items Skipped. "updated_at": "2020-02-20 00:00:00", # Optional. Last modified. "uuid": "str" # Optional. Unique id. @@ -190637,6 +190844,10 @@ async def detach_knowledge_base( identifier. "galileo_project_name": "str", # Optional. Name of the Galileo project. + "insights_enabled": bool, # Optional. Whether insights are + enabled. + "insights_enabled_at": "2020-02-20 00:00:00", # Optional. + Timestamp when insights were enabled. "log_stream_id": "str", # Optional. Identifier for the log stream. "log_stream_name": "str" # Optional. Name of the log stream. @@ -190827,6 +191038,12 @@ async def detach_knowledge_base( tokens. "total_datasources": 0, # Optional. Number of datasources being indexed. + "total_items_failed": "str", # + Optional. Total Items Failed. + "total_items_indexed": "str", # + Optional. Total Items Indexed. + "total_items_skipped": "str", # + Optional. Total Items Skipped. "updated_at": "2020-02-20 00:00:00", # Optional. Last modified. "uuid": "str" # Optional. Unique id. @@ -191964,6 +192181,12 @@ async def get_agent(self, uuid: str, **kwargs: Any) -> JSON: "tokens": 0, # Optional. Number of tokens. "total_datasources": 0, # Optional. Number of datasources being indexed. + "total_items_failed": "str", # Optional. + Total Items Failed. + "total_items_indexed": "str", # Optional. + Total Items Indexed. + "total_items_skipped": "str", # Optional. + Total Items Skipped. "updated_at": "2020-02-20 00:00:00", # Optional. Last modified. "uuid": "str" # Optional. Unique id. @@ -191988,6 +192211,10 @@ async def get_agent(self, uuid: str, **kwargs: Any) -> JSON: identifier. "galileo_project_name": "str", # Optional. Name of the Galileo project. + "insights_enabled": bool, # Optional. Whether insights are + enabled. + "insights_enabled_at": "2020-02-20 00:00:00", # Optional. + Timestamp when insights were enabled. "log_stream_id": "str", # Optional. Identifier for the log stream. "log_stream_name": "str" # Optional. Name of the log stream. @@ -192178,6 +192405,12 @@ async def get_agent(self, uuid: str, **kwargs: Any) -> JSON: tokens. "total_datasources": 0, # Optional. Number of datasources being indexed. + "total_items_failed": "str", # + Optional. Total Items Failed. + "total_items_indexed": "str", # + Optional. Total Items Indexed. + "total_items_skipped": "str", # + Optional. Total Items Skipped. "updated_at": "2020-02-20 00:00:00", # Optional. Last modified. "uuid": "str" # Optional. Unique id. @@ -192503,6 +192736,7 @@ async def update_agent( # JSON input template you can fill out and use as your body input. body = { + "agent_log_insights_enabled": bool, # Optional. "anthropic_key_uuid": "str", # Optional. Optional anthropic key uuid for use with anthropic models. "conversation_logs_enabled": bool, # Optional. Optional update of @@ -192721,6 +192955,12 @@ async def update_agent( "tokens": 0, # Optional. Number of tokens. "total_datasources": 0, # Optional. Number of datasources being indexed. + "total_items_failed": "str", # Optional. + Total Items Failed. + "total_items_indexed": "str", # Optional. + Total Items Indexed. + "total_items_skipped": "str", # Optional. + Total Items Skipped. "updated_at": "2020-02-20 00:00:00", # Optional. Last modified. "uuid": "str" # Optional. Unique id. @@ -192745,6 +192985,10 @@ async def update_agent( identifier. "galileo_project_name": "str", # Optional. Name of the Galileo project. + "insights_enabled": bool, # Optional. Whether insights are + enabled. + "insights_enabled_at": "2020-02-20 00:00:00", # Optional. + Timestamp when insights were enabled. "log_stream_id": "str", # Optional. Identifier for the log stream. "log_stream_name": "str" # Optional. Name of the log stream. @@ -192935,6 +193179,12 @@ async def update_agent( tokens. "total_datasources": 0, # Optional. Number of datasources being indexed. + "total_items_failed": "str", # + Optional. Total Items Failed. + "total_items_indexed": "str", # + Optional. Total Items Indexed. + "total_items_skipped": "str", # + Optional. Total Items Skipped. "updated_at": "2020-02-20 00:00:00", # Optional. Last modified. "uuid": "str" # Optional. Unique id. @@ -193357,6 +193607,12 @@ async def update_agent( "tokens": 0, # Optional. Number of tokens. "total_datasources": 0, # Optional. Number of datasources being indexed. + "total_items_failed": "str", # Optional. + Total Items Failed. + "total_items_indexed": "str", # Optional. + Total Items Indexed. + "total_items_skipped": "str", # Optional. + Total Items Skipped. "updated_at": "2020-02-20 00:00:00", # Optional. Last modified. "uuid": "str" # Optional. Unique id. @@ -193381,6 +193637,10 @@ async def update_agent( identifier. "galileo_project_name": "str", # Optional. Name of the Galileo project. + "insights_enabled": bool, # Optional. Whether insights are + enabled. + "insights_enabled_at": "2020-02-20 00:00:00", # Optional. + Timestamp when insights were enabled. "log_stream_id": "str", # Optional. Identifier for the log stream. "log_stream_name": "str" # Optional. Name of the log stream. @@ -193571,6 +193831,12 @@ async def update_agent( tokens. "total_datasources": 0, # Optional. Number of datasources being indexed. + "total_items_failed": "str", # + Optional. Total Items Failed. + "total_items_indexed": "str", # + Optional. Total Items Indexed. + "total_items_skipped": "str", # + Optional. Total Items Skipped. "updated_at": "2020-02-20 00:00:00", # Optional. Last modified. "uuid": "str" # Optional. Unique id. @@ -193811,6 +194077,7 @@ async def update_agent( # JSON input template you can fill out and use as your body input. body = { + "agent_log_insights_enabled": bool, # Optional. "anthropic_key_uuid": "str", # Optional. Optional anthropic key uuid for use with anthropic models. "conversation_logs_enabled": bool, # Optional. Optional update of @@ -194029,6 +194296,12 @@ async def update_agent( "tokens": 0, # Optional. Number of tokens. "total_datasources": 0, # Optional. Number of datasources being indexed. + "total_items_failed": "str", # Optional. + Total Items Failed. + "total_items_indexed": "str", # Optional. + Total Items Indexed. + "total_items_skipped": "str", # Optional. + Total Items Skipped. "updated_at": "2020-02-20 00:00:00", # Optional. Last modified. "uuid": "str" # Optional. Unique id. @@ -194053,6 +194326,10 @@ async def update_agent( identifier. "galileo_project_name": "str", # Optional. Name of the Galileo project. + "insights_enabled": bool, # Optional. Whether insights are + enabled. + "insights_enabled_at": "2020-02-20 00:00:00", # Optional. + Timestamp when insights were enabled. "log_stream_id": "str", # Optional. Identifier for the log stream. "log_stream_name": "str" # Optional. Name of the log stream. @@ -194243,6 +194520,12 @@ async def update_agent( tokens. "total_datasources": 0, # Optional. Number of datasources being indexed. + "total_items_failed": "str", # + Optional. Total Items Failed. + "total_items_indexed": "str", # + Optional. Total Items Indexed. + "total_items_skipped": "str", # + Optional. Total Items Skipped. "updated_at": "2020-02-20 00:00:00", # Optional. Last modified. "uuid": "str" # Optional. Unique id. @@ -194746,6 +195029,12 @@ async def delete_agent(self, uuid: str, **kwargs: Any) -> JSON: "tokens": 0, # Optional. Number of tokens. "total_datasources": 0, # Optional. Number of datasources being indexed. + "total_items_failed": "str", # Optional. + Total Items Failed. + "total_items_indexed": "str", # Optional. + Total Items Indexed. + "total_items_skipped": "str", # Optional. + Total Items Skipped. "updated_at": "2020-02-20 00:00:00", # Optional. Last modified. "uuid": "str" # Optional. Unique id. @@ -194770,6 +195059,10 @@ async def delete_agent(self, uuid: str, **kwargs: Any) -> JSON: identifier. "galileo_project_name": "str", # Optional. Name of the Galileo project. + "insights_enabled": bool, # Optional. Whether insights are + enabled. + "insights_enabled_at": "2020-02-20 00:00:00", # Optional. + Timestamp when insights were enabled. "log_stream_id": "str", # Optional. Identifier for the log stream. "log_stream_name": "str" # Optional. Name of the log stream. @@ -194960,6 +195253,12 @@ async def delete_agent(self, uuid: str, **kwargs: Any) -> JSON: tokens. "total_datasources": 0, # Optional. Number of datasources being indexed. + "total_items_failed": "str", # + Optional. Total Items Failed. + "total_items_indexed": "str", # + Optional. Total Items Indexed. + "total_items_skipped": "str", # + Optional. Total Items Skipped. "updated_at": "2020-02-20 00:00:00", # Optional. Last modified. "uuid": "str" # Optional. Unique id. @@ -195461,6 +195760,12 @@ async def get_agent_children(self, uuid: str, **kwargs: Any) -> JSON: tokens. "total_datasources": 0, # Optional. Number of datasources being indexed. + "total_items_failed": "str", # + Optional. Total Items Failed. + "total_items_indexed": "str", # + Optional. Total Items Indexed. + "total_items_skipped": "str", # + Optional. Total Items Skipped. "updated_at": "2020-02-20 00:00:00", # Optional. Last modified. "uuid": "str" # Optional. Unique id. @@ -195487,6 +195792,10 @@ async def get_agent_children(self, uuid: str, **kwargs: Any) -> JSON: project identifier. "galileo_project_name": "str", # Optional. Name of the Galileo project. + "insights_enabled": bool, # Optional. Whether + insights are enabled. + "insights_enabled_at": "2020-02-20 00:00:00", # + Optional. Timestamp when insights were enabled. "log_stream_id": "str", # Optional. Identifier for the log stream. "log_stream_name": "str" # Optional. Name of the log @@ -195694,6 +196003,12 @@ async def get_agent_children(self, uuid: str, **kwargs: Any) -> JSON: Number of tokens. "total_datasources": 0, # Optional. Number of datasources being indexed. + "total_items_failed": "str", + # Optional. Total Items Failed. + "total_items_indexed": "str", + # Optional. Total Items Indexed. + "total_items_skipped": "str", + # Optional. Total Items Skipped. "updated_at": "2020-02-20 00:00:00", # Optional. Last modified. "uuid": "str" # Optional. @@ -196224,6 +196539,12 @@ async def update_agent_deployment_visibility( "tokens": 0, # Optional. Number of tokens. "total_datasources": 0, # Optional. Number of datasources being indexed. + "total_items_failed": "str", # Optional. + Total Items Failed. + "total_items_indexed": "str", # Optional. + Total Items Indexed. + "total_items_skipped": "str", # Optional. + Total Items Skipped. "updated_at": "2020-02-20 00:00:00", # Optional. Last modified. "uuid": "str" # Optional. Unique id. @@ -196248,6 +196569,10 @@ async def update_agent_deployment_visibility( identifier. "galileo_project_name": "str", # Optional. Name of the Galileo project. + "insights_enabled": bool, # Optional. Whether insights are + enabled. + "insights_enabled_at": "2020-02-20 00:00:00", # Optional. + Timestamp when insights were enabled. "log_stream_id": "str", # Optional. Identifier for the log stream. "log_stream_name": "str" # Optional. Name of the log stream. @@ -196438,6 +196763,12 @@ async def update_agent_deployment_visibility( tokens. "total_datasources": 0, # Optional. Number of datasources being indexed. + "total_items_failed": "str", # + Optional. Total Items Failed. + "total_items_indexed": "str", # + Optional. Total Items Indexed. + "total_items_skipped": "str", # + Optional. Total Items Skipped. "updated_at": "2020-02-20 00:00:00", # Optional. Last modified. "uuid": "str" # Optional. Unique id. @@ -196860,6 +197191,12 @@ async def update_agent_deployment_visibility( "tokens": 0, # Optional. Number of tokens. "total_datasources": 0, # Optional. Number of datasources being indexed. + "total_items_failed": "str", # Optional. + Total Items Failed. + "total_items_indexed": "str", # Optional. + Total Items Indexed. + "total_items_skipped": "str", # Optional. + Total Items Skipped. "updated_at": "2020-02-20 00:00:00", # Optional. Last modified. "uuid": "str" # Optional. Unique id. @@ -196884,6 +197221,10 @@ async def update_agent_deployment_visibility( identifier. "galileo_project_name": "str", # Optional. Name of the Galileo project. + "insights_enabled": bool, # Optional. Whether insights are + enabled. + "insights_enabled_at": "2020-02-20 00:00:00", # Optional. + Timestamp when insights were enabled. "log_stream_id": "str", # Optional. Identifier for the log stream. "log_stream_name": "str" # Optional. Name of the log stream. @@ -197074,6 +197415,12 @@ async def update_agent_deployment_visibility( tokens. "total_datasources": 0, # Optional. Number of datasources being indexed. + "total_items_failed": "str", # + Optional. Total Items Failed. + "total_items_indexed": "str", # + Optional. Total Items Indexed. + "total_items_skipped": "str", # + Optional. Total Items Skipped. "updated_at": "2020-02-20 00:00:00", # Optional. Last modified. "uuid": "str" # Optional. Unique id. @@ -197502,6 +197849,12 @@ async def update_agent_deployment_visibility( "tokens": 0, # Optional. Number of tokens. "total_datasources": 0, # Optional. Number of datasources being indexed. + "total_items_failed": "str", # Optional. + Total Items Failed. + "total_items_indexed": "str", # Optional. + Total Items Indexed. + "total_items_skipped": "str", # Optional. + Total Items Skipped. "updated_at": "2020-02-20 00:00:00", # Optional. Last modified. "uuid": "str" # Optional. Unique id. @@ -197526,6 +197879,10 @@ async def update_agent_deployment_visibility( identifier. "galileo_project_name": "str", # Optional. Name of the Galileo project. + "insights_enabled": bool, # Optional. Whether insights are + enabled. + "insights_enabled_at": "2020-02-20 00:00:00", # Optional. + Timestamp when insights were enabled. "log_stream_id": "str", # Optional. Identifier for the log stream. "log_stream_name": "str" # Optional. Name of the log stream. @@ -197716,6 +198073,12 @@ async def update_agent_deployment_visibility( tokens. "total_datasources": 0, # Optional. Number of datasources being indexed. + "total_items_failed": "str", # + Optional. Total Items Failed. + "total_items_indexed": "str", # + Optional. Total Items Indexed. + "total_items_skipped": "str", # + Optional. Total Items Skipped. "updated_at": "2020-02-20 00:00:00", # Optional. Last modified. "uuid": "str" # Optional. Unique id. @@ -198027,6 +198390,158 @@ async def update_agent_deployment_visibility( return cast(JSON, deserialized) # type: ignore + @distributed_trace_async + async def get_agent_usage( + self, + uuid: str, + *, + start: Optional[str] = None, + stop: Optional[str] = None, + **kwargs: Any + ) -> JSON: + # pylint: disable=line-too-long + """Get Agent Usage. + + To get agent usage, send a GET request to ``/v2/gen-ai/agents/{uuid}/usage``. Returns usage + metrics for the specified agent within the provided time range. + + :param uuid: Agent id. Required. + :type uuid: str + :keyword start: Return all usage data from this date. Default value is None. + :paramtype start: str + :keyword stop: Return all usage data up to this date, if omitted, will return up to the current + date. Default value is None. + :paramtype stop: str + :return: JSON object + :rtype: JSON + :raises ~azure.core.exceptions.HttpResponseError: + + Example: + .. code-block:: python + + # response body for status code(s): 200 + response == { + "log_insights_usage": { + "measurements": [ + { + "tokens": 0, # Optional. Resource Usage Description. + "usage_type": "str" # Optional. Resource Usage + Description. + } + ], + "resource_uuid": "str", # Optional. Resource Usage Description. + "start": "2020-02-20 00:00:00", # Optional. Resource Usage + Description. + "stop": "2020-02-20 00:00:00" # Optional. Resource Usage + Description. + }, + "usage": { + "measurements": [ + { + "tokens": 0, # Optional. Resource Usage Description. + "usage_type": "str" # Optional. Resource Usage + Description. + } + ], + "resource_uuid": "str", # Optional. Resource Usage Description. + "start": "2020-02-20 00:00:00", # Optional. Resource Usage + Description. + "stop": "2020-02-20 00:00:00" # Optional. Resource Usage + Description. + } + } + # response body for status code(s): 404 + response == { + "id": "str", # A short identifier corresponding to the HTTP status code + returned. For example, the ID for a response returning a 404 status code would + be "not_found.". Required. + "message": "str", # A message providing additional information about the + error, including details to help resolve it when possible. Required. + "request_id": "str" # Optional. Optionally, some endpoints may include a + request ID that should be provided when reporting bugs or opening support + tickets to help identify the issue. + } + """ + error_map: MutableMapping[int, Type[HttpResponseError]] = { + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + 401: cast( + Type[HttpResponseError], + lambda response: ClientAuthenticationError(response=response), + ), + 429: HttpResponseError, + 500: HttpResponseError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[JSON] = kwargs.pop("cls", None) + + _request = build_genai_get_agent_usage_request( + uuid=uuid, + start=start, + stop=stop, + headers=_headers, + params=_params, + ) + _request.url = self._client.format_url(_request.url) + + _stream = False + pipeline_response: PipelineResponse = ( + await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + ) + + response = pipeline_response.http_response + + if response.status_code not in [200, 404]: + if _stream: + await response.read() # Load the body in memory and close the socket + map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + raise HttpResponseError(response=response) + + response_headers = {} + if response.status_code == 200: + response_headers["ratelimit-limit"] = self._deserialize( + "int", response.headers.get("ratelimit-limit") + ) + response_headers["ratelimit-remaining"] = self._deserialize( + "int", response.headers.get("ratelimit-remaining") + ) + response_headers["ratelimit-reset"] = self._deserialize( + "int", response.headers.get("ratelimit-reset") + ) + + if response.content: + deserialized = response.json() + else: + deserialized = None + + if response.status_code == 404: + response_headers["ratelimit-limit"] = self._deserialize( + "int", response.headers.get("ratelimit-limit") + ) + response_headers["ratelimit-remaining"] = self._deserialize( + "int", response.headers.get("ratelimit-remaining") + ) + response_headers["ratelimit-reset"] = self._deserialize( + "int", response.headers.get("ratelimit-reset") + ) + + if response.content: + deserialized = response.json() + else: + deserialized = None + + if cls: + return cls(pipeline_response, cast(JSON, deserialized), response_headers) # type: ignore + + return cast(JSON, deserialized) # type: ignore + @distributed_trace_async async def list_agent_versions( self, @@ -199645,6 +200160,12 @@ async def list_agents_by_anthropic_key( tokens. "total_datasources": 0, # Optional. Number of datasources being indexed. + "total_items_failed": "str", # + Optional. Total Items Failed. + "total_items_indexed": "str", # + Optional. Total Items Indexed. + "total_items_skipped": "str", # + Optional. Total Items Skipped. "updated_at": "2020-02-20 00:00:00", # Optional. Last modified. "uuid": "str" # Optional. Unique id. @@ -199671,6 +200192,10 @@ async def list_agents_by_anthropic_key( project identifier. "galileo_project_name": "str", # Optional. Name of the Galileo project. + "insights_enabled": bool, # Optional. Whether + insights are enabled. + "insights_enabled_at": "2020-02-20 00:00:00", # + Optional. Timestamp when insights were enabled. "log_stream_id": "str", # Optional. Identifier for the log stream. "log_stream_name": "str" # Optional. Name of the log @@ -199878,6 +200403,12 @@ async def list_agents_by_anthropic_key( Number of tokens. "total_datasources": 0, # Optional. Number of datasources being indexed. + "total_items_failed": "str", + # Optional. Total Items Failed. + "total_items_indexed": "str", + # Optional. Total Items Indexed. + "total_items_skipped": "str", + # Optional. Total Items Skipped. "updated_at": "2020-02-20 00:00:00", # Optional. Last modified. "uuid": "str" # Optional. @@ -202821,6 +203352,11 @@ async def list_indexing_jobs( "tokens": 0, # Optional. Number of tokens. "total_datasources": 0, # Optional. Number of datasources being indexed. + "total_items_failed": "str", # Optional. Total Items Failed. + "total_items_indexed": "str", # Optional. Total Items + Indexed. + "total_items_skipped": "str", # Optional. Total Items + Skipped. "updated_at": "2020-02-20 00:00:00", # Optional. Last modified. "uuid": "str" # Optional. Unique id. @@ -202994,6 +203530,9 @@ async def create_indexing_job( "tokens": 0, # Optional. Number of tokens. "total_datasources": 0, # Optional. Number of datasources being indexed. + "total_items_failed": "str", # Optional. Total Items Failed. + "total_items_indexed": "str", # Optional. Total Items Indexed. + "total_items_skipped": "str", # Optional. Total Items Skipped. "updated_at": "2020-02-20 00:00:00", # Optional. Last modified. "uuid": "str" # Optional. Unique id. } @@ -203065,6 +203604,9 @@ async def create_indexing_job( "tokens": 0, # Optional. Number of tokens. "total_datasources": 0, # Optional. Number of datasources being indexed. + "total_items_failed": "str", # Optional. Total Items Failed. + "total_items_indexed": "str", # Optional. Total Items Indexed. + "total_items_skipped": "str", # Optional. Total Items Skipped. "updated_at": "2020-02-20 00:00:00", # Optional. Last modified. "uuid": "str" # Optional. Unique id. } @@ -203138,6 +203680,9 @@ async def create_indexing_job( "tokens": 0, # Optional. Number of tokens. "total_datasources": 0, # Optional. Number of datasources being indexed. + "total_items_failed": "str", # Optional. Total Items Failed. + "total_items_indexed": "str", # Optional. Total Items Indexed. + "total_items_skipped": "str", # Optional. Total Items Skipped. "updated_at": "2020-02-20 00:00:00", # Optional. Last modified. "uuid": "str" # Optional. Unique id. } @@ -203440,6 +203985,9 @@ async def get_indexing_job(self, uuid: str, **kwargs: Any) -> JSON: "tokens": 0, # Optional. Number of tokens. "total_datasources": 0, # Optional. Number of datasources being indexed. + "total_items_failed": "str", # Optional. Total Items Failed. + "total_items_indexed": "str", # Optional. Total Items Indexed. + "total_items_skipped": "str", # Optional. Total Items Skipped. "updated_at": "2020-02-20 00:00:00", # Optional. Last modified. "uuid": "str" # Optional. Unique id. } @@ -203596,6 +204144,9 @@ async def cancel_indexing_job( "tokens": 0, # Optional. Number of tokens. "total_datasources": 0, # Optional. Number of datasources being indexed. + "total_items_failed": "str", # Optional. Total Items Failed. + "total_items_indexed": "str", # Optional. Total Items Indexed. + "total_items_skipped": "str", # Optional. Total Items Skipped. "updated_at": "2020-02-20 00:00:00", # Optional. Last modified. "uuid": "str" # Optional. Unique id. } @@ -203670,6 +204221,9 @@ async def cancel_indexing_job( "tokens": 0, # Optional. Number of tokens. "total_datasources": 0, # Optional. Number of datasources being indexed. + "total_items_failed": "str", # Optional. Total Items Failed. + "total_items_indexed": "str", # Optional. Total Items Indexed. + "total_items_skipped": "str", # Optional. Total Items Skipped. "updated_at": "2020-02-20 00:00:00", # Optional. Last modified. "uuid": "str" # Optional. Unique id. } @@ -203741,6 +204295,9 @@ async def cancel_indexing_job( "tokens": 0, # Optional. Number of tokens. "total_datasources": 0, # Optional. Number of datasources being indexed. + "total_items_failed": "str", # Optional. Total Items Failed. + "total_items_indexed": "str", # Optional. Total Items Indexed. + "total_items_skipped": "str", # Optional. Total Items Skipped. "updated_at": "2020-02-20 00:00:00", # Optional. Last modified. "uuid": "str" # Optional. Unique id. } @@ -203918,6 +204475,12 @@ async def list_knowledge_bases( "tokens": 0, # Optional. Number of tokens. "total_datasources": 0, # Optional. Number of datasources being indexed. + "total_items_failed": "str", # Optional. Total Items + Failed. + "total_items_indexed": "str", # Optional. Total + Items Indexed. + "total_items_skipped": "str", # Optional. Total + Items Skipped. "updated_at": "2020-02-20 00:00:00", # Optional. Last modified. "uuid": "str" # Optional. Unique id. @@ -204085,6 +204648,12 @@ async def create_knowledge_base( data_source_details. "bucket_region": "str", # Optional. Deprecated, moved to data_source_details. + "dropbox_data_source": { + "folder": "str", # Optional. Dropbox Data Source. + "refresh_token": "str" # Optional. Refresh token. + you can obrain a refresh token by following the oauth2 flow. see + /v2/gen-ai/oauth2/dropbox/tokens for reference. + }, "file_upload_data_source": { "original_file_name": "str", # Optional. The original file name. @@ -204175,6 +204744,11 @@ async def create_knowledge_base( "tokens": 0, # Optional. Number of tokens. "total_datasources": 0, # Optional. Number of datasources being indexed. + "total_items_failed": "str", # Optional. Total Items Failed. + "total_items_indexed": "str", # Optional. Total Items + Indexed. + "total_items_skipped": "str", # Optional. Total Items + Skipped. "updated_at": "2020-02-20 00:00:00", # Optional. Last modified. "uuid": "str" # Optional. Unique id. @@ -204269,6 +204843,11 @@ async def create_knowledge_base( "tokens": 0, # Optional. Number of tokens. "total_datasources": 0, # Optional. Number of datasources being indexed. + "total_items_failed": "str", # Optional. Total Items Failed. + "total_items_indexed": "str", # Optional. Total Items + Indexed. + "total_items_skipped": "str", # Optional. Total Items + Skipped. "updated_at": "2020-02-20 00:00:00", # Optional. Last modified. "uuid": "str" # Optional. Unique id. @@ -204335,6 +204914,12 @@ async def create_knowledge_base( data_source_details. "bucket_region": "str", # Optional. Deprecated, moved to data_source_details. + "dropbox_data_source": { + "folder": "str", # Optional. Dropbox Data Source. + "refresh_token": "str" # Optional. Refresh token. + you can obrain a refresh token by following the oauth2 flow. see + /v2/gen-ai/oauth2/dropbox/tokens for reference. + }, "file_upload_data_source": { "original_file_name": "str", # Optional. The original file name. @@ -204425,6 +205010,11 @@ async def create_knowledge_base( "tokens": 0, # Optional. Number of tokens. "total_datasources": 0, # Optional. Number of datasources being indexed. + "total_items_failed": "str", # Optional. Total Items Failed. + "total_items_indexed": "str", # Optional. Total Items + Indexed. + "total_items_skipped": "str", # Optional. Total Items + Skipped. "updated_at": "2020-02-20 00:00:00", # Optional. Last modified. "uuid": "str" # Optional. Unique id. @@ -204590,6 +205180,10 @@ async def list_knowledge_base_data_sources( Deprecated, moved to data_source_details. "created_at": "2020-02-20 00:00:00", # Optional. Creation date / time. + "dropbox_data_source": { + "folder": "str" # Optional. Dropbox Data Source for + Display. + }, "file_upload_data_source": { "original_file_name": "str", # Optional. The original file name. @@ -204662,6 +205256,12 @@ async def list_knowledge_base_data_sources( "tokens": 0, # Optional. Number of tokens. "total_datasources": 0, # Optional. Number of datasources being indexed. + "total_items_failed": "str", # Optional. Total Items + Failed. + "total_items_indexed": "str", # Optional. Total + Items Indexed. + "total_items_skipped": "str", # Optional. Total + Items Skipped. "updated_at": "2020-02-20 00:00:00", # Optional. Last modified. "uuid": "str" # Optional. Unique id. @@ -204871,6 +205471,9 @@ async def create_knowledge_base_data_source( Deprecated, moved to data_source_details. "created_at": "2020-02-20 00:00:00", # Optional. Creation date / time. + "dropbox_data_source": { + "folder": "str" # Optional. Dropbox Data Source for Display. + }, "file_upload_data_source": { "original_file_name": "str", # Optional. The original file name. @@ -204942,6 +205545,11 @@ async def create_knowledge_base_data_source( "tokens": 0, # Optional. Number of tokens. "total_datasources": 0, # Optional. Number of datasources being indexed. + "total_items_failed": "str", # Optional. Total Items Failed. + "total_items_indexed": "str", # Optional. Total Items + Indexed. + "total_items_skipped": "str", # Optional. Total Items + Skipped. "updated_at": "2020-02-20 00:00:00", # Optional. Last modified. "uuid": "str" # Optional. Unique id. @@ -205025,6 +205633,9 @@ async def create_knowledge_base_data_source( Deprecated, moved to data_source_details. "created_at": "2020-02-20 00:00:00", # Optional. Creation date / time. + "dropbox_data_source": { + "folder": "str" # Optional. Dropbox Data Source for Display. + }, "file_upload_data_source": { "original_file_name": "str", # Optional. The original file name. @@ -205096,6 +205707,11 @@ async def create_knowledge_base_data_source( "tokens": 0, # Optional. Number of tokens. "total_datasources": 0, # Optional. Number of datasources being indexed. + "total_items_failed": "str", # Optional. Total Items Failed. + "total_items_indexed": "str", # Optional. Total Items + Indexed. + "total_items_skipped": "str", # Optional. Total Items + Skipped. "updated_at": "2020-02-20 00:00:00", # Optional. Last modified. "uuid": "str" # Optional. Unique id. @@ -205203,6 +205819,9 @@ async def create_knowledge_base_data_source( Deprecated, moved to data_source_details. "created_at": "2020-02-20 00:00:00", # Optional. Creation date / time. + "dropbox_data_source": { + "folder": "str" # Optional. Dropbox Data Source for Display. + }, "file_upload_data_source": { "original_file_name": "str", # Optional. The original file name. @@ -205274,6 +205893,11 @@ async def create_knowledge_base_data_source( "tokens": 0, # Optional. Number of tokens. "total_datasources": 0, # Optional. Number of datasources being indexed. + "total_items_failed": "str", # Optional. Total Items Failed. + "total_items_indexed": "str", # Optional. Total Items + Indexed. + "total_items_skipped": "str", # Optional. Total Items + Skipped. "updated_at": "2020-02-20 00:00:00", # Optional. Last modified. "uuid": "str" # Optional. Unique id. @@ -205587,6 +206211,11 @@ async def get_knowledge_base(self, uuid: str, **kwargs: Any) -> JSON: "tokens": 0, # Optional. Number of tokens. "total_datasources": 0, # Optional. Number of datasources being indexed. + "total_items_failed": "str", # Optional. Total Items Failed. + "total_items_indexed": "str", # Optional. Total Items + Indexed. + "total_items_skipped": "str", # Optional. Total Items + Skipped. "updated_at": "2020-02-20 00:00:00", # Optional. Last modified. "uuid": "str" # Optional. Unique id. @@ -205776,6 +206405,11 @@ async def update_knowledge_base( "tokens": 0, # Optional. Number of tokens. "total_datasources": 0, # Optional. Number of datasources being indexed. + "total_items_failed": "str", # Optional. Total Items Failed. + "total_items_indexed": "str", # Optional. Total Items + Indexed. + "total_items_skipped": "str", # Optional. Total Items + Skipped. "updated_at": "2020-02-20 00:00:00", # Optional. Last modified. "uuid": "str" # Optional. Unique id. @@ -205873,6 +206507,11 @@ async def update_knowledge_base( "tokens": 0, # Optional. Number of tokens. "total_datasources": 0, # Optional. Number of datasources being indexed. + "total_items_failed": "str", # Optional. Total Items Failed. + "total_items_indexed": "str", # Optional. Total Items + Indexed. + "total_items_skipped": "str", # Optional. Total Items + Skipped. "updated_at": "2020-02-20 00:00:00", # Optional. Last modified. "uuid": "str" # Optional. Unique id. @@ -205977,6 +206616,11 @@ async def update_knowledge_base( "tokens": 0, # Optional. Number of tokens. "total_datasources": 0, # Optional. Number of datasources being indexed. + "total_items_failed": "str", # Optional. Total Items Failed. + "total_items_indexed": "str", # Optional. Total Items + Indexed. + "total_items_skipped": "str", # Optional. Total Items + Skipped. "updated_at": "2020-02-20 00:00:00", # Optional. Last modified. "uuid": "str" # Optional. Unique id. @@ -206275,9 +206919,10 @@ async def list_models( }, "created_at": "2020-02-20 00:00:00", # Optional. Creation date / time. + "id": "str", # Optional. Human-readable model identifier. "is_foundational": bool, # Optional. True if it is a foundational model provided by do. - "name": "str", # Optional. Name of the model. + "name": "str", # Optional. Display name of the model. "parent_uuid": "str", # Optional. Unique id of the model, this model is based on. "updated_at": "2020-02-20 00:00:00", # Optional. Last @@ -207266,6 +207911,359 @@ async def regenerate_model_api_key(self, api_key_uuid: str, **kwargs: Any) -> JS return cast(JSON, deserialized) # type: ignore + @overload + async def create_oauth2_dropbox_tokens( + self, + body: Optional[JSON] = None, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> JSON: + # pylint: disable=line-too-long + """Get Oauth2 Dropbox Tokens. + + To obtain the refresh token, needed for creation of data sources, send a GET request to + ``/v2/gen-ai/oauth2/dropbox/tokens``. Pass the code you obtrained from the oauth flow in the + field 'code'. + + :param body: Default value is None. + :type body: JSON + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: JSON object + :rtype: JSON + :raises ~azure.core.exceptions.HttpResponseError: + + Example: + .. code-block:: python + + # JSON input template you can fill out and use as your body input. + body = { + "code": "str", # Optional. The oauth2 code from google. + "redirect_url": "str" # Optional. Redirect url. + } + + # response body for status code(s): 200 + response == { + "refresh_token": "str", # Optional. The refresh token. + "token": "str" # Optional. The access token. + } + # response body for status code(s): 404 + response == { + "id": "str", # A short identifier corresponding to the HTTP status code + returned. For example, the ID for a response returning a 404 status code would + be "not_found.". Required. + "message": "str", # A message providing additional information about the + error, including details to help resolve it when possible. Required. + "request_id": "str" # Optional. Optionally, some endpoints may include a + request ID that should be provided when reporting bugs or opening support + tickets to help identify the issue. + } + """ + + @overload + async def create_oauth2_dropbox_tokens( + self, + body: Optional[IO[bytes]] = None, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> JSON: + # pylint: disable=line-too-long + """Get Oauth2 Dropbox Tokens. + + To obtain the refresh token, needed for creation of data sources, send a GET request to + ``/v2/gen-ai/oauth2/dropbox/tokens``. Pass the code you obtrained from the oauth flow in the + field 'code'. + + :param body: Default value is None. + :type body: IO[bytes] + :keyword content_type: Body Parameter content-type. Content type parameter for binary body. + Default value is "application/json". + :paramtype content_type: str + :return: JSON object + :rtype: JSON + :raises ~azure.core.exceptions.HttpResponseError: + + Example: + .. code-block:: python + + # response body for status code(s): 200 + response == { + "refresh_token": "str", # Optional. The refresh token. + "token": "str" # Optional. The access token. + } + # response body for status code(s): 404 + response == { + "id": "str", # A short identifier corresponding to the HTTP status code + returned. For example, the ID for a response returning a 404 status code would + be "not_found.". Required. + "message": "str", # A message providing additional information about the + error, including details to help resolve it when possible. Required. + "request_id": "str" # Optional. Optionally, some endpoints may include a + request ID that should be provided when reporting bugs or opening support + tickets to help identify the issue. + } + """ + + @distributed_trace_async + async def create_oauth2_dropbox_tokens( + self, body: Optional[Union[JSON, IO[bytes]]] = None, **kwargs: Any + ) -> JSON: + # pylint: disable=line-too-long + """Get Oauth2 Dropbox Tokens. + + To obtain the refresh token, needed for creation of data sources, send a GET request to + ``/v2/gen-ai/oauth2/dropbox/tokens``. Pass the code you obtrained from the oauth flow in the + field 'code'. + + :param body: Is either a JSON type or a IO[bytes] type. Default value is None. + :type body: JSON or IO[bytes] + :return: JSON object + :rtype: JSON + :raises ~azure.core.exceptions.HttpResponseError: + + Example: + .. code-block:: python + + # JSON input template you can fill out and use as your body input. + body = { + "code": "str", # Optional. The oauth2 code from google. + "redirect_url": "str" # Optional. Redirect url. + } + + # response body for status code(s): 200 + response == { + "refresh_token": "str", # Optional. The refresh token. + "token": "str" # Optional. The access token. + } + # response body for status code(s): 404 + response == { + "id": "str", # A short identifier corresponding to the HTTP status code + returned. For example, the ID for a response returning a 404 status code would + be "not_found.". Required. + "message": "str", # A message providing additional information about the + error, including details to help resolve it when possible. Required. + "request_id": "str" # Optional. Optionally, some endpoints may include a + request ID that should be provided when reporting bugs or opening support + tickets to help identify the issue. + } + """ + error_map: MutableMapping[int, Type[HttpResponseError]] = { + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + 401: cast( + Type[HttpResponseError], + lambda response: ClientAuthenticationError(response=response), + ), + 429: HttpResponseError, + 500: HttpResponseError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = kwargs.pop("params", {}) or {} + + content_type: Optional[str] = kwargs.pop( + "content_type", _headers.pop("Content-Type", None) + ) + cls: ClsType[JSON] = kwargs.pop("cls", None) + + content_type = content_type or "application/json" + _json = None + _content = None + if isinstance(body, (IOBase, bytes)): + _content = body + else: + if body is not None: + _json = body + else: + _json = None + + _request = build_genai_create_oauth2_dropbox_tokens_request( + content_type=content_type, + json=_json, + content=_content, + headers=_headers, + params=_params, + ) + _request.url = self._client.format_url(_request.url) + + _stream = False + pipeline_response: PipelineResponse = ( + await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + ) + + response = pipeline_response.http_response + + if response.status_code not in [200, 404]: + if _stream: + await response.read() # Load the body in memory and close the socket + map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + raise HttpResponseError(response=response) + + response_headers = {} + if response.status_code == 200: + response_headers["ratelimit-limit"] = self._deserialize( + "int", response.headers.get("ratelimit-limit") + ) + response_headers["ratelimit-remaining"] = self._deserialize( + "int", response.headers.get("ratelimit-remaining") + ) + response_headers["ratelimit-reset"] = self._deserialize( + "int", response.headers.get("ratelimit-reset") + ) + + if response.content: + deserialized = response.json() + else: + deserialized = None + + if response.status_code == 404: + response_headers["ratelimit-limit"] = self._deserialize( + "int", response.headers.get("ratelimit-limit") + ) + response_headers["ratelimit-remaining"] = self._deserialize( + "int", response.headers.get("ratelimit-remaining") + ) + response_headers["ratelimit-reset"] = self._deserialize( + "int", response.headers.get("ratelimit-reset") + ) + + if response.content: + deserialized = response.json() + else: + deserialized = None + + if cls: + return cls(pipeline_response, cast(JSON, deserialized), response_headers) # type: ignore + + return cast(JSON, deserialized) # type: ignore + + @distributed_trace_async + async def get_oauth2_url( + self, + *, + type: Optional[str] = None, + redirect_url: Optional[str] = None, + **kwargs: Any + ) -> JSON: + # pylint: disable=line-too-long + """Get Oauth2 URL. + + To generate an Oauth2-URL for use with your localhost, send a GET request to + ``/v2/gen-ai/oauth2/url``. Pass 'http://localhost:3000 as redirect_url. + + :keyword type: Type "google" / "dropbox". Default value is None. + :paramtype type: str + :keyword redirect_url: The redirect url. Default value is None. + :paramtype redirect_url: str + :return: JSON object + :rtype: JSON + :raises ~azure.core.exceptions.HttpResponseError: + + Example: + .. code-block:: python + + # response body for status code(s): 200 + response == { + "url": "str" # Optional. The oauth2 url. + } + # response body for status code(s): 404 + response == { + "id": "str", # A short identifier corresponding to the HTTP status code + returned. For example, the ID for a response returning a 404 status code would + be "not_found.". Required. + "message": "str", # A message providing additional information about the + error, including details to help resolve it when possible. Required. + "request_id": "str" # Optional. Optionally, some endpoints may include a + request ID that should be provided when reporting bugs or opening support + tickets to help identify the issue. + } + """ + error_map: MutableMapping[int, Type[HttpResponseError]] = { + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + 401: cast( + Type[HttpResponseError], + lambda response: ClientAuthenticationError(response=response), + ), + 429: HttpResponseError, + 500: HttpResponseError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[JSON] = kwargs.pop("cls", None) + + _request = build_genai_get_oauth2_url_request( + type=type, + redirect_url=redirect_url, + headers=_headers, + params=_params, + ) + _request.url = self._client.format_url(_request.url) + + _stream = False + pipeline_response: PipelineResponse = ( + await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + ) + + response = pipeline_response.http_response + + if response.status_code not in [200, 404]: + if _stream: + await response.read() # Load the body in memory and close the socket + map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + raise HttpResponseError(response=response) + + response_headers = {} + if response.status_code == 200: + response_headers["ratelimit-limit"] = self._deserialize( + "int", response.headers.get("ratelimit-limit") + ) + response_headers["ratelimit-remaining"] = self._deserialize( + "int", response.headers.get("ratelimit-remaining") + ) + response_headers["ratelimit-reset"] = self._deserialize( + "int", response.headers.get("ratelimit-reset") + ) + + if response.content: + deserialized = response.json() + else: + deserialized = None + + if response.status_code == 404: + response_headers["ratelimit-limit"] = self._deserialize( + "int", response.headers.get("ratelimit-limit") + ) + response_headers["ratelimit-remaining"] = self._deserialize( + "int", response.headers.get("ratelimit-remaining") + ) + response_headers["ratelimit-reset"] = self._deserialize( + "int", response.headers.get("ratelimit-reset") + ) + + if response.content: + deserialized = response.json() + else: + deserialized = None + + if cls: + return cls(pipeline_response, cast(JSON, deserialized), response_headers) # type: ignore + + return cast(JSON, deserialized) # type: ignore + @distributed_trace_async async def list_openai_api_keys( self, @@ -208791,6 +209789,12 @@ async def list_agents_by_openai_key( tokens. "total_datasources": 0, # Optional. Number of datasources being indexed. + "total_items_failed": "str", # + Optional. Total Items Failed. + "total_items_indexed": "str", # + Optional. Total Items Indexed. + "total_items_skipped": "str", # + Optional. Total Items Skipped. "updated_at": "2020-02-20 00:00:00", # Optional. Last modified. "uuid": "str" # Optional. Unique id. @@ -208817,6 +209821,10 @@ async def list_agents_by_openai_key( project identifier. "galileo_project_name": "str", # Optional. Name of the Galileo project. + "insights_enabled": bool, # Optional. Whether + insights are enabled. + "insights_enabled_at": "2020-02-20 00:00:00", # + Optional. Timestamp when insights were enabled. "log_stream_id": "str", # Optional. Identifier for the log stream. "log_stream_name": "str" # Optional. Name of the log @@ -209024,6 +210032,12 @@ async def list_agents_by_openai_key( Number of tokens. "total_datasources": 0, # Optional. Number of datasources being indexed. + "total_items_failed": "str", + # Optional. Total Items Failed. + "total_items_indexed": "str", + # Optional. Total Items Indexed. + "total_items_skipped": "str", + # Optional. Total Items Skipped. "updated_at": "2020-02-20 00:00:00", # Optional. Last modified. "uuid": "str" # Optional. @@ -209719,6 +210733,12 @@ async def list_workspaces(self, **kwargs: Any) -> JSON: Optional. Number of tokens. "total_datasources": 0, # Optional. Number of datasources being indexed. + "total_items_failed": + "str", # Optional. Total Items Failed. + "total_items_indexed": "str", # Optional. Total + Items Indexed. + "total_items_skipped": "str", # Optional. Total + Items Skipped. "updated_at": "2020-02-20 00:00:00", # Optional. Last modified. "uuid": "str" # @@ -209747,6 +210767,10 @@ async def list_workspaces(self, **kwargs: Any) -> JSON: Optional. Galileo project identifier. "galileo_project_name": "str", # Optional. Name of the Galileo project. + "insights_enabled": bool, # + Optional. Whether insights are enabled. + "insights_enabled_at": "2020-02-20 + 00:00:00", # Optional. Timestamp when insights were enabled. "log_stream_id": "str", # Optional. Identifier for the log stream. "log_stream_name": "str" # Optional. @@ -209978,6 +211002,12 @@ async def list_workspaces(self, **kwargs: Any) -> JSON: # Optional. Number of tokens. "total_datasources": 0, # Optional. Number of datasources being indexed. + "total_items_failed": "str", # Optional. Total + Items Failed. + "total_items_indexed": "str", # Optional. Total + Items Indexed. + "total_items_skipped": "str", # Optional. Total + Items Skipped. "updated_at": "2020-02-20 00:00:00", # Optional. Last modified. @@ -210529,6 +211559,12 @@ async def create_workspace( Number of tokens. "total_datasources": 0, # Optional. Number of datasources being indexed. + "total_items_failed": "str", + # Optional. Total Items Failed. + "total_items_indexed": "str", + # Optional. Total Items Indexed. + "total_items_skipped": "str", + # Optional. Total Items Skipped. "updated_at": "2020-02-20 00:00:00", # Optional. Last modified. "uuid": "str" # Optional. @@ -210557,6 +211593,10 @@ async def create_workspace( Galileo project identifier. "galileo_project_name": "str", # Optional. Name of the Galileo project. + "insights_enabled": bool, # Optional. + Whether insights are enabled. + "insights_enabled_at": "2020-02-20 00:00:00", + # Optional. Timestamp when insights were enabled. "log_stream_id": "str", # Optional. Identifier for the log stream. "log_stream_name": "str" # Optional. Name of @@ -210778,6 +211818,12 @@ async def create_workspace( Optional. Number of tokens. "total_datasources": 0, # Optional. Number of datasources being indexed. + "total_items_failed": + "str", # Optional. Total Items Failed. + "total_items_indexed": "str", # Optional. Total + Items Indexed. + "total_items_skipped": "str", # Optional. Total + Items Skipped. "updated_at": "2020-02-20 00:00:00", # Optional. Last modified. "uuid": "str" # @@ -211231,6 +212277,12 @@ async def create_workspace( Number of tokens. "total_datasources": 0, # Optional. Number of datasources being indexed. + "total_items_failed": "str", + # Optional. Total Items Failed. + "total_items_indexed": "str", + # Optional. Total Items Indexed. + "total_items_skipped": "str", + # Optional. Total Items Skipped. "updated_at": "2020-02-20 00:00:00", # Optional. Last modified. "uuid": "str" # Optional. @@ -211259,6 +212311,10 @@ async def create_workspace( Galileo project identifier. "galileo_project_name": "str", # Optional. Name of the Galileo project. + "insights_enabled": bool, # Optional. + Whether insights are enabled. + "insights_enabled_at": "2020-02-20 00:00:00", + # Optional. Timestamp when insights were enabled. "log_stream_id": "str", # Optional. Identifier for the log stream. "log_stream_name": "str" # Optional. Name of @@ -211480,6 +212536,12 @@ async def create_workspace( Optional. Number of tokens. "total_datasources": 0, # Optional. Number of datasources being indexed. + "total_items_failed": + "str", # Optional. Total Items Failed. + "total_items_indexed": "str", # Optional. Total + Items Indexed. + "total_items_skipped": "str", # Optional. Total + Items Skipped. "updated_at": "2020-02-20 00:00:00", # Optional. Last modified. "uuid": "str" # @@ -211935,6 +212997,12 @@ async def create_workspace( Number of tokens. "total_datasources": 0, # Optional. Number of datasources being indexed. + "total_items_failed": "str", + # Optional. Total Items Failed. + "total_items_indexed": "str", + # Optional. Total Items Indexed. + "total_items_skipped": "str", + # Optional. Total Items Skipped. "updated_at": "2020-02-20 00:00:00", # Optional. Last modified. "uuid": "str" # Optional. @@ -211963,6 +213031,10 @@ async def create_workspace( Galileo project identifier. "galileo_project_name": "str", # Optional. Name of the Galileo project. + "insights_enabled": bool, # Optional. + Whether insights are enabled. + "insights_enabled_at": "2020-02-20 00:00:00", + # Optional. Timestamp when insights were enabled. "log_stream_id": "str", # Optional. Identifier for the log stream. "log_stream_name": "str" # Optional. Name of @@ -212184,6 +213256,12 @@ async def create_workspace( Optional. Number of tokens. "total_datasources": 0, # Optional. Number of datasources being indexed. + "total_items_failed": + "str", # Optional. Total Items Failed. + "total_items_indexed": "str", # Optional. Total + Items Indexed. + "total_items_skipped": "str", # Optional. Total + Items Skipped. "updated_at": "2020-02-20 00:00:00", # Optional. Last modified. "uuid": "str" # @@ -212721,6 +213799,12 @@ async def get_workspace(self, workspace_uuid: str, **kwargs: Any) -> JSON: Number of tokens. "total_datasources": 0, # Optional. Number of datasources being indexed. + "total_items_failed": "str", + # Optional. Total Items Failed. + "total_items_indexed": "str", + # Optional. Total Items Indexed. + "total_items_skipped": "str", + # Optional. Total Items Skipped. "updated_at": "2020-02-20 00:00:00", # Optional. Last modified. "uuid": "str" # Optional. @@ -212749,6 +213833,10 @@ async def get_workspace(self, workspace_uuid: str, **kwargs: Any) -> JSON: Galileo project identifier. "galileo_project_name": "str", # Optional. Name of the Galileo project. + "insights_enabled": bool, # Optional. + Whether insights are enabled. + "insights_enabled_at": "2020-02-20 00:00:00", + # Optional. Timestamp when insights were enabled. "log_stream_id": "str", # Optional. Identifier for the log stream. "log_stream_name": "str" # Optional. Name of @@ -212970,6 +214058,12 @@ async def get_workspace(self, workspace_uuid: str, **kwargs: Any) -> JSON: Optional. Number of tokens. "total_datasources": 0, # Optional. Number of datasources being indexed. + "total_items_failed": + "str", # Optional. Total Items Failed. + "total_items_indexed": "str", # Optional. Total + Items Indexed. + "total_items_skipped": "str", # Optional. Total + Items Skipped. "updated_at": "2020-02-20 00:00:00", # Optional. Last modified. "uuid": "str" # @@ -213510,6 +214604,12 @@ async def update_workspace( Number of tokens. "total_datasources": 0, # Optional. Number of datasources being indexed. + "total_items_failed": "str", + # Optional. Total Items Failed. + "total_items_indexed": "str", + # Optional. Total Items Indexed. + "total_items_skipped": "str", + # Optional. Total Items Skipped. "updated_at": "2020-02-20 00:00:00", # Optional. Last modified. "uuid": "str" # Optional. @@ -213538,6 +214638,10 @@ async def update_workspace( Galileo project identifier. "galileo_project_name": "str", # Optional. Name of the Galileo project. + "insights_enabled": bool, # Optional. + Whether insights are enabled. + "insights_enabled_at": "2020-02-20 00:00:00", + # Optional. Timestamp when insights were enabled. "log_stream_id": "str", # Optional. Identifier for the log stream. "log_stream_name": "str" # Optional. Name of @@ -213759,6 +214863,12 @@ async def update_workspace( Optional. Number of tokens. "total_datasources": 0, # Optional. Number of datasources being indexed. + "total_items_failed": + "str", # Optional. Total Items Failed. + "total_items_indexed": "str", # Optional. Total + Items Indexed. + "total_items_skipped": "str", # Optional. Total + Items Skipped. "updated_at": "2020-02-20 00:00:00", # Optional. Last modified. "uuid": "str" # @@ -214215,6 +215325,12 @@ async def update_workspace( Number of tokens. "total_datasources": 0, # Optional. Number of datasources being indexed. + "total_items_failed": "str", + # Optional. Total Items Failed. + "total_items_indexed": "str", + # Optional. Total Items Indexed. + "total_items_skipped": "str", + # Optional. Total Items Skipped. "updated_at": "2020-02-20 00:00:00", # Optional. Last modified. "uuid": "str" # Optional. @@ -214243,6 +215359,10 @@ async def update_workspace( Galileo project identifier. "galileo_project_name": "str", # Optional. Name of the Galileo project. + "insights_enabled": bool, # Optional. + Whether insights are enabled. + "insights_enabled_at": "2020-02-20 00:00:00", + # Optional. Timestamp when insights were enabled. "log_stream_id": "str", # Optional. Identifier for the log stream. "log_stream_name": "str" # Optional. Name of @@ -214464,6 +215584,12 @@ async def update_workspace( Optional. Number of tokens. "total_datasources": 0, # Optional. Number of datasources being indexed. + "total_items_failed": + "str", # Optional. Total Items Failed. + "total_items_indexed": "str", # Optional. Total + Items Indexed. + "total_items_skipped": "str", # Optional. Total + Items Skipped. "updated_at": "2020-02-20 00:00:00", # Optional. Last modified. "uuid": "str" # @@ -214922,6 +216048,12 @@ async def update_workspace( Number of tokens. "total_datasources": 0, # Optional. Number of datasources being indexed. + "total_items_failed": "str", + # Optional. Total Items Failed. + "total_items_indexed": "str", + # Optional. Total Items Indexed. + "total_items_skipped": "str", + # Optional. Total Items Skipped. "updated_at": "2020-02-20 00:00:00", # Optional. Last modified. "uuid": "str" # Optional. @@ -214950,6 +216082,10 @@ async def update_workspace( Galileo project identifier. "galileo_project_name": "str", # Optional. Name of the Galileo project. + "insights_enabled": bool, # Optional. + Whether insights are enabled. + "insights_enabled_at": "2020-02-20 00:00:00", + # Optional. Timestamp when insights were enabled. "log_stream_id": "str", # Optional. Identifier for the log stream. "log_stream_name": "str" # Optional. Name of @@ -215171,6 +216307,12 @@ async def update_workspace( Optional. Number of tokens. "total_datasources": 0, # Optional. Number of datasources being indexed. + "total_items_failed": + "str", # Optional. Total Items Failed. + "total_items_indexed": "str", # Optional. Total + Items Indexed. + "total_items_skipped": "str", # Optional. Total + Items Skipped. "updated_at": "2020-02-20 00:00:00", # Optional. Last modified. "uuid": "str" # @@ -215816,6 +216958,12 @@ async def list_agents_by_workspace( tokens. "total_datasources": 0, # Optional. Number of datasources being indexed. + "total_items_failed": "str", # + Optional. Total Items Failed. + "total_items_indexed": "str", # + Optional. Total Items Indexed. + "total_items_skipped": "str", # + Optional. Total Items Skipped. "updated_at": "2020-02-20 00:00:00", # Optional. Last modified. "uuid": "str" # Optional. Unique id. @@ -215842,6 +216990,10 @@ async def list_agents_by_workspace( project identifier. "galileo_project_name": "str", # Optional. Name of the Galileo project. + "insights_enabled": bool, # Optional. Whether + insights are enabled. + "insights_enabled_at": "2020-02-20 00:00:00", # + Optional. Timestamp when insights were enabled. "log_stream_id": "str", # Optional. Identifier for the log stream. "log_stream_name": "str" # Optional. Name of the log @@ -216049,6 +217201,12 @@ async def list_agents_by_workspace( Number of tokens. "total_datasources": 0, # Optional. Number of datasources being indexed. + "total_items_failed": "str", + # Optional. Total Items Failed. + "total_items_indexed": "str", + # Optional. Total Items Indexed. + "total_items_skipped": "str", + # Optional. Total Items Skipped. "updated_at": "2020-02-20 00:00:00", # Optional. Last modified. "uuid": "str" # Optional. @@ -216618,6 +217776,12 @@ async def update_agents_workspace( Number of tokens. "total_datasources": 0, # Optional. Number of datasources being indexed. + "total_items_failed": "str", + # Optional. Total Items Failed. + "total_items_indexed": "str", + # Optional. Total Items Indexed. + "total_items_skipped": "str", + # Optional. Total Items Skipped. "updated_at": "2020-02-20 00:00:00", # Optional. Last modified. "uuid": "str" # Optional. @@ -216646,6 +217810,10 @@ async def update_agents_workspace( Galileo project identifier. "galileo_project_name": "str", # Optional. Name of the Galileo project. + "insights_enabled": bool, # Optional. + Whether insights are enabled. + "insights_enabled_at": "2020-02-20 00:00:00", + # Optional. Timestamp when insights were enabled. "log_stream_id": "str", # Optional. Identifier for the log stream. "log_stream_name": "str" # Optional. Name of @@ -216867,6 +218035,12 @@ async def update_agents_workspace( Optional. Number of tokens. "total_datasources": 0, # Optional. Number of datasources being indexed. + "total_items_failed": + "str", # Optional. Total Items Failed. + "total_items_indexed": "str", # Optional. Total + Items Indexed. + "total_items_skipped": "str", # Optional. Total + Items Skipped. "updated_at": "2020-02-20 00:00:00", # Optional. Last modified. "uuid": "str" # @@ -217323,6 +218497,12 @@ async def update_agents_workspace( Number of tokens. "total_datasources": 0, # Optional. Number of datasources being indexed. + "total_items_failed": "str", + # Optional. Total Items Failed. + "total_items_indexed": "str", + # Optional. Total Items Indexed. + "total_items_skipped": "str", + # Optional. Total Items Skipped. "updated_at": "2020-02-20 00:00:00", # Optional. Last modified. "uuid": "str" # Optional. @@ -217351,6 +218531,10 @@ async def update_agents_workspace( Galileo project identifier. "galileo_project_name": "str", # Optional. Name of the Galileo project. + "insights_enabled": bool, # Optional. + Whether insights are enabled. + "insights_enabled_at": "2020-02-20 00:00:00", + # Optional. Timestamp when insights were enabled. "log_stream_id": "str", # Optional. Identifier for the log stream. "log_stream_name": "str" # Optional. Name of @@ -217572,6 +218756,12 @@ async def update_agents_workspace( Optional. Number of tokens. "total_datasources": 0, # Optional. Number of datasources being indexed. + "total_items_failed": + "str", # Optional. Total Items Failed. + "total_items_indexed": "str", # Optional. Total + Items Indexed. + "total_items_skipped": "str", # Optional. Total + Items Skipped. "updated_at": "2020-02-20 00:00:00", # Optional. Last modified. "uuid": "str" # @@ -218031,6 +219221,12 @@ async def update_agents_workspace( Number of tokens. "total_datasources": 0, # Optional. Number of datasources being indexed. + "total_items_failed": "str", + # Optional. Total Items Failed. + "total_items_indexed": "str", + # Optional. Total Items Indexed. + "total_items_skipped": "str", + # Optional. Total Items Skipped. "updated_at": "2020-02-20 00:00:00", # Optional. Last modified. "uuid": "str" # Optional. @@ -218059,6 +219255,10 @@ async def update_agents_workspace( Galileo project identifier. "galileo_project_name": "str", # Optional. Name of the Galileo project. + "insights_enabled": bool, # Optional. + Whether insights are enabled. + "insights_enabled_at": "2020-02-20 00:00:00", + # Optional. Timestamp when insights were enabled. "log_stream_id": "str", # Optional. Identifier for the log stream. "log_stream_name": "str" # Optional. Name of @@ -218280,6 +219480,12 @@ async def update_agents_workspace( Optional. Number of tokens. "total_datasources": 0, # Optional. Number of datasources being indexed. + "total_items_failed": + "str", # Optional. Total Items Failed. + "total_items_indexed": "str", # Optional. Total + Items Indexed. + "total_items_skipped": "str", # Optional. Total + Items Skipped. "updated_at": "2020-02-20 00:00:00", # Optional. Last modified. "uuid": "str" # diff --git a/src/pydo/operations/_operations.py b/src/pydo/operations/_operations.py index 9a32d93..067b058 100644 --- a/src/pydo/operations/_operations.py +++ b/src/pydo/operations/_operations.py @@ -11052,6 +11052,36 @@ def build_genai_update_agent_deployment_visibility_request( # pylint: disable=n return HttpRequest(method="PUT", url=_url, headers=_headers, **kwargs) +def build_genai_get_agent_usage_request( + uuid: str, *, start: Optional[str] = None, stop: Optional[str] = None, **kwargs: Any +) -> HttpRequest: + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + accept = _headers.pop("Accept", "application/json") + + # Construct URL + _url = "/v2/gen-ai/agents/{uuid}/usage" + path_format_arguments = { + "uuid": _SERIALIZER.url("uuid", uuid, "str"), + } + + _url: str = _url.format(**path_format_arguments) # type: ignore + + # Construct parameters + if start is not None: + _params["start"] = _SERIALIZER.query("start", start, "str") + if stop is not None: + _params["stop"] = _SERIALIZER.query("stop", stop, "str") + + # Construct headers + _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") + + return HttpRequest( + method="GET", url=_url, params=_params, headers=_headers, **kwargs + ) + + def build_genai_list_agent_versions_request( uuid: str, *, @@ -12043,6 +12073,54 @@ def build_genai_regenerate_model_api_key_request( # pylint: disable=name-too-lo return HttpRequest(method="PUT", url=_url, headers=_headers, **kwargs) +def build_genai_create_oauth2_dropbox_tokens_request( + **kwargs: Any, +) -> HttpRequest: # pylint: disable=name-too-long + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + + content_type: Optional[str] = kwargs.pop( + "content_type", _headers.pop("Content-Type", None) + ) + accept = _headers.pop("Accept", "application/json") + + # Construct URL + _url = "/v2/gen-ai/oauth2/dropbox/tokens" + + # Construct headers + if content_type is not None: + _headers["Content-Type"] = _SERIALIZER.header( + "content_type", content_type, "str" + ) + _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") + + return HttpRequest(method="POST", url=_url, headers=_headers, **kwargs) + + +def build_genai_get_oauth2_url_request( + *, type: Optional[str] = None, redirect_url: Optional[str] = None, **kwargs: Any +) -> HttpRequest: + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + accept = _headers.pop("Accept", "application/json") + + # Construct URL + _url = "/v2/gen-ai/oauth2/url" + + # Construct parameters + if type is not None: + _params["type"] = _SERIALIZER.query("type", type, "str") + if redirect_url is not None: + _params["redirect_url"] = _SERIALIZER.query("redirect_url", redirect_url, "str") + + # Construct headers + _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") + + return HttpRequest( + method="GET", url=_url, params=_params, headers=_headers, **kwargs + ) + + def build_genai_list_openai_api_keys_request( *, page: Optional[int] = None, per_page: Optional[int] = None, **kwargs: Any ) -> HttpRequest: @@ -192878,6 +192956,12 @@ def list_agents( Number of tokens. "total_datasources": 0, # Optional. Number of datasources being indexed. + "total_items_failed": "str", + # Optional. Total Items Failed. + "total_items_indexed": "str", + # Optional. Total Items Indexed. + "total_items_skipped": "str", + # Optional. Total Items Skipped. "updated_at": "2020-02-20 00:00:00", # Optional. Last modified. "uuid": "str" # Optional. @@ -193326,6 +193410,12 @@ def create_agent( "tokens": 0, # Optional. Number of tokens. "total_datasources": 0, # Optional. Number of datasources being indexed. + "total_items_failed": "str", # Optional. + Total Items Failed. + "total_items_indexed": "str", # Optional. + Total Items Indexed. + "total_items_skipped": "str", # Optional. + Total Items Skipped. "updated_at": "2020-02-20 00:00:00", # Optional. Last modified. "uuid": "str" # Optional. Unique id. @@ -193350,6 +193440,10 @@ def create_agent( identifier. "galileo_project_name": "str", # Optional. Name of the Galileo project. + "insights_enabled": bool, # Optional. Whether insights are + enabled. + "insights_enabled_at": "2020-02-20 00:00:00", # Optional. + Timestamp when insights were enabled. "log_stream_id": "str", # Optional. Identifier for the log stream. "log_stream_name": "str" # Optional. Name of the log stream. @@ -193540,6 +193634,12 @@ def create_agent( tokens. "total_datasources": 0, # Optional. Number of datasources being indexed. + "total_items_failed": "str", # + Optional. Total Items Failed. + "total_items_indexed": "str", # + Optional. Total Items Indexed. + "total_items_skipped": "str", # + Optional. Total Items Skipped. "updated_at": "2020-02-20 00:00:00", # Optional. Last modified. "uuid": "str" # Optional. Unique id. @@ -193959,6 +194059,12 @@ def create_agent( "tokens": 0, # Optional. Number of tokens. "total_datasources": 0, # Optional. Number of datasources being indexed. + "total_items_failed": "str", # Optional. + Total Items Failed. + "total_items_indexed": "str", # Optional. + Total Items Indexed. + "total_items_skipped": "str", # Optional. + Total Items Skipped. "updated_at": "2020-02-20 00:00:00", # Optional. Last modified. "uuid": "str" # Optional. Unique id. @@ -193983,6 +194089,10 @@ def create_agent( identifier. "galileo_project_name": "str", # Optional. Name of the Galileo project. + "insights_enabled": bool, # Optional. Whether insights are + enabled. + "insights_enabled_at": "2020-02-20 00:00:00", # Optional. + Timestamp when insights were enabled. "log_stream_id": "str", # Optional. Identifier for the log stream. "log_stream_name": "str" # Optional. Name of the log stream. @@ -194173,6 +194283,12 @@ def create_agent( tokens. "total_datasources": 0, # Optional. Number of datasources being indexed. + "total_items_failed": "str", # + Optional. Total Items Failed. + "total_items_indexed": "str", # + Optional. Total Items Indexed. + "total_items_skipped": "str", # + Optional. Total Items Skipped. "updated_at": "2020-02-20 00:00:00", # Optional. Last modified. "uuid": "str" # Optional. Unique id. @@ -194612,6 +194728,12 @@ def create_agent( "tokens": 0, # Optional. Number of tokens. "total_datasources": 0, # Optional. Number of datasources being indexed. + "total_items_failed": "str", # Optional. + Total Items Failed. + "total_items_indexed": "str", # Optional. + Total Items Indexed. + "total_items_skipped": "str", # Optional. + Total Items Skipped. "updated_at": "2020-02-20 00:00:00", # Optional. Last modified. "uuid": "str" # Optional. Unique id. @@ -194636,6 +194758,10 @@ def create_agent( identifier. "galileo_project_name": "str", # Optional. Name of the Galileo project. + "insights_enabled": bool, # Optional. Whether insights are + enabled. + "insights_enabled_at": "2020-02-20 00:00:00", # Optional. + Timestamp when insights were enabled. "log_stream_id": "str", # Optional. Identifier for the log stream. "log_stream_name": "str" # Optional. Name of the log stream. @@ -194826,6 +194952,12 @@ def create_agent( tokens. "total_datasources": 0, # Optional. Number of datasources being indexed. + "total_items_failed": "str", # + Optional. Total Items Failed. + "total_items_indexed": "str", # + Optional. Total Items Indexed. + "total_items_skipped": "str", # + Optional. Total Items Skipped. "updated_at": "2020-02-20 00:00:00", # Optional. Last modified. "uuid": "str" # Optional. Unique id. @@ -196278,6 +196410,12 @@ def attach_agent_function( "tokens": 0, # Optional. Number of tokens. "total_datasources": 0, # Optional. Number of datasources being indexed. + "total_items_failed": "str", # Optional. + Total Items Failed. + "total_items_indexed": "str", # Optional. + Total Items Indexed. + "total_items_skipped": "str", # Optional. + Total Items Skipped. "updated_at": "2020-02-20 00:00:00", # Optional. Last modified. "uuid": "str" # Optional. Unique id. @@ -196302,6 +196440,10 @@ def attach_agent_function( identifier. "galileo_project_name": "str", # Optional. Name of the Galileo project. + "insights_enabled": bool, # Optional. Whether insights are + enabled. + "insights_enabled_at": "2020-02-20 00:00:00", # Optional. + Timestamp when insights were enabled. "log_stream_id": "str", # Optional. Identifier for the log stream. "log_stream_name": "str" # Optional. Name of the log stream. @@ -196492,6 +196634,12 @@ def attach_agent_function( tokens. "total_datasources": 0, # Optional. Number of datasources being indexed. + "total_items_failed": "str", # + Optional. Total Items Failed. + "total_items_indexed": "str", # + Optional. Total Items Indexed. + "total_items_skipped": "str", # + Optional. Total Items Skipped. "updated_at": "2020-02-20 00:00:00", # Optional. Last modified. "uuid": "str" # Optional. Unique id. @@ -196914,6 +197062,12 @@ def attach_agent_function( "tokens": 0, # Optional. Number of tokens. "total_datasources": 0, # Optional. Number of datasources being indexed. + "total_items_failed": "str", # Optional. + Total Items Failed. + "total_items_indexed": "str", # Optional. + Total Items Indexed. + "total_items_skipped": "str", # Optional. + Total Items Skipped. "updated_at": "2020-02-20 00:00:00", # Optional. Last modified. "uuid": "str" # Optional. Unique id. @@ -196938,6 +197092,10 @@ def attach_agent_function( identifier. "galileo_project_name": "str", # Optional. Name of the Galileo project. + "insights_enabled": bool, # Optional. Whether insights are + enabled. + "insights_enabled_at": "2020-02-20 00:00:00", # Optional. + Timestamp when insights were enabled. "log_stream_id": "str", # Optional. Identifier for the log stream. "log_stream_name": "str" # Optional. Name of the log stream. @@ -197128,6 +197286,12 @@ def attach_agent_function( tokens. "total_datasources": 0, # Optional. Number of datasources being indexed. + "total_items_failed": "str", # + Optional. Total Items Failed. + "total_items_indexed": "str", # + Optional. Total Items Indexed. + "total_items_skipped": "str", # + Optional. Total Items Skipped. "updated_at": "2020-02-20 00:00:00", # Optional. Last modified. "uuid": "str" # Optional. Unique id. @@ -197560,6 +197724,12 @@ def attach_agent_function( "tokens": 0, # Optional. Number of tokens. "total_datasources": 0, # Optional. Number of datasources being indexed. + "total_items_failed": "str", # Optional. + Total Items Failed. + "total_items_indexed": "str", # Optional. + Total Items Indexed. + "total_items_skipped": "str", # Optional. + Total Items Skipped. "updated_at": "2020-02-20 00:00:00", # Optional. Last modified. "uuid": "str" # Optional. Unique id. @@ -197584,6 +197754,10 @@ def attach_agent_function( identifier. "galileo_project_name": "str", # Optional. Name of the Galileo project. + "insights_enabled": bool, # Optional. Whether insights are + enabled. + "insights_enabled_at": "2020-02-20 00:00:00", # Optional. + Timestamp when insights were enabled. "log_stream_id": "str", # Optional. Identifier for the log stream. "log_stream_name": "str" # Optional. Name of the log stream. @@ -197774,6 +197948,12 @@ def attach_agent_function( tokens. "total_datasources": 0, # Optional. Number of datasources being indexed. + "total_items_failed": "str", # + Optional. Total Items Failed. + "total_items_indexed": "str", # + Optional. Total Items Indexed. + "total_items_skipped": "str", # + Optional. Total Items Skipped. "updated_at": "2020-02-20 00:00:00", # Optional. Last modified. "uuid": "str" # Optional. Unique id. @@ -198309,6 +198489,12 @@ def update_agent_function( "tokens": 0, # Optional. Number of tokens. "total_datasources": 0, # Optional. Number of datasources being indexed. + "total_items_failed": "str", # Optional. + Total Items Failed. + "total_items_indexed": "str", # Optional. + Total Items Indexed. + "total_items_skipped": "str", # Optional. + Total Items Skipped. "updated_at": "2020-02-20 00:00:00", # Optional. Last modified. "uuid": "str" # Optional. Unique id. @@ -198333,6 +198519,10 @@ def update_agent_function( identifier. "galileo_project_name": "str", # Optional. Name of the Galileo project. + "insights_enabled": bool, # Optional. Whether insights are + enabled. + "insights_enabled_at": "2020-02-20 00:00:00", # Optional. + Timestamp when insights were enabled. "log_stream_id": "str", # Optional. Identifier for the log stream. "log_stream_name": "str" # Optional. Name of the log stream. @@ -198523,6 +198713,12 @@ def update_agent_function( tokens. "total_datasources": 0, # Optional. Number of datasources being indexed. + "total_items_failed": "str", # + Optional. Total Items Failed. + "total_items_indexed": "str", # + Optional. Total Items Indexed. + "total_items_skipped": "str", # + Optional. Total Items Skipped. "updated_at": "2020-02-20 00:00:00", # Optional. Last modified. "uuid": "str" # Optional. Unique id. @@ -198948,6 +199144,12 @@ def update_agent_function( "tokens": 0, # Optional. Number of tokens. "total_datasources": 0, # Optional. Number of datasources being indexed. + "total_items_failed": "str", # Optional. + Total Items Failed. + "total_items_indexed": "str", # Optional. + Total Items Indexed. + "total_items_skipped": "str", # Optional. + Total Items Skipped. "updated_at": "2020-02-20 00:00:00", # Optional. Last modified. "uuid": "str" # Optional. Unique id. @@ -198972,6 +199174,10 @@ def update_agent_function( identifier. "galileo_project_name": "str", # Optional. Name of the Galileo project. + "insights_enabled": bool, # Optional. Whether insights are + enabled. + "insights_enabled_at": "2020-02-20 00:00:00", # Optional. + Timestamp when insights were enabled. "log_stream_id": "str", # Optional. Identifier for the log stream. "log_stream_name": "str" # Optional. Name of the log stream. @@ -199162,6 +199368,12 @@ def update_agent_function( tokens. "total_datasources": 0, # Optional. Number of datasources being indexed. + "total_items_failed": "str", # + Optional. Total Items Failed. + "total_items_indexed": "str", # + Optional. Total Items Indexed. + "total_items_skipped": "str", # + Optional. Total Items Skipped. "updated_at": "2020-02-20 00:00:00", # Optional. Last modified. "uuid": "str" # Optional. Unique id. @@ -199598,6 +199810,12 @@ def update_agent_function( "tokens": 0, # Optional. Number of tokens. "total_datasources": 0, # Optional. Number of datasources being indexed. + "total_items_failed": "str", # Optional. + Total Items Failed. + "total_items_indexed": "str", # Optional. + Total Items Indexed. + "total_items_skipped": "str", # Optional. + Total Items Skipped. "updated_at": "2020-02-20 00:00:00", # Optional. Last modified. "uuid": "str" # Optional. Unique id. @@ -199622,6 +199840,10 @@ def update_agent_function( identifier. "galileo_project_name": "str", # Optional. Name of the Galileo project. + "insights_enabled": bool, # Optional. Whether insights are + enabled. + "insights_enabled_at": "2020-02-20 00:00:00", # Optional. + Timestamp when insights were enabled. "log_stream_id": "str", # Optional. Identifier for the log stream. "log_stream_name": "str" # Optional. Name of the log stream. @@ -199812,6 +200034,12 @@ def update_agent_function( tokens. "total_datasources": 0, # Optional. Number of datasources being indexed. + "total_items_failed": "str", # + Optional. Total Items Failed. + "total_items_indexed": "str", # + Optional. Total Items Indexed. + "total_items_skipped": "str", # + Optional. Total Items Skipped. "updated_at": "2020-02-20 00:00:00", # Optional. Last modified. "uuid": "str" # Optional. Unique id. @@ -200322,6 +200550,12 @@ def detach_agent_function( "tokens": 0, # Optional. Number of tokens. "total_datasources": 0, # Optional. Number of datasources being indexed. + "total_items_failed": "str", # Optional. + Total Items Failed. + "total_items_indexed": "str", # Optional. + Total Items Indexed. + "total_items_skipped": "str", # Optional. + Total Items Skipped. "updated_at": "2020-02-20 00:00:00", # Optional. Last modified. "uuid": "str" # Optional. Unique id. @@ -200346,6 +200580,10 @@ def detach_agent_function( identifier. "galileo_project_name": "str", # Optional. Name of the Galileo project. + "insights_enabled": bool, # Optional. Whether insights are + enabled. + "insights_enabled_at": "2020-02-20 00:00:00", # Optional. + Timestamp when insights were enabled. "log_stream_id": "str", # Optional. Identifier for the log stream. "log_stream_name": "str" # Optional. Name of the log stream. @@ -200536,6 +200774,12 @@ def detach_agent_function( tokens. "total_datasources": 0, # Optional. Number of datasources being indexed. + "total_items_failed": "str", # + Optional. Total Items Failed. + "total_items_indexed": "str", # + Optional. Total Items Indexed. + "total_items_skipped": "str", # + Optional. Total Items Skipped. "updated_at": "2020-02-20 00:00:00", # Optional. Last modified. "uuid": "str" # Optional. Unique id. @@ -201024,6 +201268,12 @@ def attach_knowledge_bases(self, agent_uuid: str, **kwargs: Any) -> JSON: "tokens": 0, # Optional. Number of tokens. "total_datasources": 0, # Optional. Number of datasources being indexed. + "total_items_failed": "str", # Optional. + Total Items Failed. + "total_items_indexed": "str", # Optional. + Total Items Indexed. + "total_items_skipped": "str", # Optional. + Total Items Skipped. "updated_at": "2020-02-20 00:00:00", # Optional. Last modified. "uuid": "str" # Optional. Unique id. @@ -201048,6 +201298,10 @@ def attach_knowledge_bases(self, agent_uuid: str, **kwargs: Any) -> JSON: identifier. "galileo_project_name": "str", # Optional. Name of the Galileo project. + "insights_enabled": bool, # Optional. Whether insights are + enabled. + "insights_enabled_at": "2020-02-20 00:00:00", # Optional. + Timestamp when insights were enabled. "log_stream_id": "str", # Optional. Identifier for the log stream. "log_stream_name": "str" # Optional. Name of the log stream. @@ -201238,6 +201492,12 @@ def attach_knowledge_bases(self, agent_uuid: str, **kwargs: Any) -> JSON: tokens. "total_datasources": 0, # Optional. Number of datasources being indexed. + "total_items_failed": "str", # + Optional. Total Items Failed. + "total_items_indexed": "str", # + Optional. Total Items Indexed. + "total_items_skipped": "str", # + Optional. Total Items Skipped. "updated_at": "2020-02-20 00:00:00", # Optional. Last modified. "uuid": "str" # Optional. Unique id. @@ -201729,6 +201989,12 @@ def attach_knowledge_base( "tokens": 0, # Optional. Number of tokens. "total_datasources": 0, # Optional. Number of datasources being indexed. + "total_items_failed": "str", # Optional. + Total Items Failed. + "total_items_indexed": "str", # Optional. + Total Items Indexed. + "total_items_skipped": "str", # Optional. + Total Items Skipped. "updated_at": "2020-02-20 00:00:00", # Optional. Last modified. "uuid": "str" # Optional. Unique id. @@ -201753,6 +202019,10 @@ def attach_knowledge_base( identifier. "galileo_project_name": "str", # Optional. Name of the Galileo project. + "insights_enabled": bool, # Optional. Whether insights are + enabled. + "insights_enabled_at": "2020-02-20 00:00:00", # Optional. + Timestamp when insights were enabled. "log_stream_id": "str", # Optional. Identifier for the log stream. "log_stream_name": "str" # Optional. Name of the log stream. @@ -201943,6 +202213,12 @@ def attach_knowledge_base( tokens. "total_datasources": 0, # Optional. Number of datasources being indexed. + "total_items_failed": "str", # + Optional. Total Items Failed. + "total_items_indexed": "str", # + Optional. Total Items Indexed. + "total_items_skipped": "str", # + Optional. Total Items Skipped. "updated_at": "2020-02-20 00:00:00", # Optional. Last modified. "uuid": "str" # Optional. Unique id. @@ -202435,6 +202711,12 @@ def detach_knowledge_base( "tokens": 0, # Optional. Number of tokens. "total_datasources": 0, # Optional. Number of datasources being indexed. + "total_items_failed": "str", # Optional. + Total Items Failed. + "total_items_indexed": "str", # Optional. + Total Items Indexed. + "total_items_skipped": "str", # Optional. + Total Items Skipped. "updated_at": "2020-02-20 00:00:00", # Optional. Last modified. "uuid": "str" # Optional. Unique id. @@ -202459,6 +202741,10 @@ def detach_knowledge_base( identifier. "galileo_project_name": "str", # Optional. Name of the Galileo project. + "insights_enabled": bool, # Optional. Whether insights are + enabled. + "insights_enabled_at": "2020-02-20 00:00:00", # Optional. + Timestamp when insights were enabled. "log_stream_id": "str", # Optional. Identifier for the log stream. "log_stream_name": "str" # Optional. Name of the log stream. @@ -202649,6 +202935,12 @@ def detach_knowledge_base( tokens. "total_datasources": 0, # Optional. Number of datasources being indexed. + "total_items_failed": "str", # + Optional. Total Items Failed. + "total_items_indexed": "str", # + Optional. Total Items Indexed. + "total_items_skipped": "str", # + Optional. Total Items Skipped. "updated_at": "2020-02-20 00:00:00", # Optional. Last modified. "uuid": "str" # Optional. Unique id. @@ -203786,6 +204078,12 @@ def get_agent(self, uuid: str, **kwargs: Any) -> JSON: "tokens": 0, # Optional. Number of tokens. "total_datasources": 0, # Optional. Number of datasources being indexed. + "total_items_failed": "str", # Optional. + Total Items Failed. + "total_items_indexed": "str", # Optional. + Total Items Indexed. + "total_items_skipped": "str", # Optional. + Total Items Skipped. "updated_at": "2020-02-20 00:00:00", # Optional. Last modified. "uuid": "str" # Optional. Unique id. @@ -203810,6 +204108,10 @@ def get_agent(self, uuid: str, **kwargs: Any) -> JSON: identifier. "galileo_project_name": "str", # Optional. Name of the Galileo project. + "insights_enabled": bool, # Optional. Whether insights are + enabled. + "insights_enabled_at": "2020-02-20 00:00:00", # Optional. + Timestamp when insights were enabled. "log_stream_id": "str", # Optional. Identifier for the log stream. "log_stream_name": "str" # Optional. Name of the log stream. @@ -204000,6 +204302,12 @@ def get_agent(self, uuid: str, **kwargs: Any) -> JSON: tokens. "total_datasources": 0, # Optional. Number of datasources being indexed. + "total_items_failed": "str", # + Optional. Total Items Failed. + "total_items_indexed": "str", # + Optional. Total Items Indexed. + "total_items_skipped": "str", # + Optional. Total Items Skipped. "updated_at": "2020-02-20 00:00:00", # Optional. Last modified. "uuid": "str" # Optional. Unique id. @@ -204325,6 +204633,7 @@ def update_agent( # JSON input template you can fill out and use as your body input. body = { + "agent_log_insights_enabled": bool, # Optional. "anthropic_key_uuid": "str", # Optional. Optional anthropic key uuid for use with anthropic models. "conversation_logs_enabled": bool, # Optional. Optional update of @@ -204543,6 +204852,12 @@ def update_agent( "tokens": 0, # Optional. Number of tokens. "total_datasources": 0, # Optional. Number of datasources being indexed. + "total_items_failed": "str", # Optional. + Total Items Failed. + "total_items_indexed": "str", # Optional. + Total Items Indexed. + "total_items_skipped": "str", # Optional. + Total Items Skipped. "updated_at": "2020-02-20 00:00:00", # Optional. Last modified. "uuid": "str" # Optional. Unique id. @@ -204567,6 +204882,10 @@ def update_agent( identifier. "galileo_project_name": "str", # Optional. Name of the Galileo project. + "insights_enabled": bool, # Optional. Whether insights are + enabled. + "insights_enabled_at": "2020-02-20 00:00:00", # Optional. + Timestamp when insights were enabled. "log_stream_id": "str", # Optional. Identifier for the log stream. "log_stream_name": "str" # Optional. Name of the log stream. @@ -204757,6 +205076,12 @@ def update_agent( tokens. "total_datasources": 0, # Optional. Number of datasources being indexed. + "total_items_failed": "str", # + Optional. Total Items Failed. + "total_items_indexed": "str", # + Optional. Total Items Indexed. + "total_items_skipped": "str", # + Optional. Total Items Skipped. "updated_at": "2020-02-20 00:00:00", # Optional. Last modified. "uuid": "str" # Optional. Unique id. @@ -205179,6 +205504,12 @@ def update_agent( "tokens": 0, # Optional. Number of tokens. "total_datasources": 0, # Optional. Number of datasources being indexed. + "total_items_failed": "str", # Optional. + Total Items Failed. + "total_items_indexed": "str", # Optional. + Total Items Indexed. + "total_items_skipped": "str", # Optional. + Total Items Skipped. "updated_at": "2020-02-20 00:00:00", # Optional. Last modified. "uuid": "str" # Optional. Unique id. @@ -205203,6 +205534,10 @@ def update_agent( identifier. "galileo_project_name": "str", # Optional. Name of the Galileo project. + "insights_enabled": bool, # Optional. Whether insights are + enabled. + "insights_enabled_at": "2020-02-20 00:00:00", # Optional. + Timestamp when insights were enabled. "log_stream_id": "str", # Optional. Identifier for the log stream. "log_stream_name": "str" # Optional. Name of the log stream. @@ -205393,6 +205728,12 @@ def update_agent( tokens. "total_datasources": 0, # Optional. Number of datasources being indexed. + "total_items_failed": "str", # + Optional. Total Items Failed. + "total_items_indexed": "str", # + Optional. Total Items Indexed. + "total_items_skipped": "str", # + Optional. Total Items Skipped. "updated_at": "2020-02-20 00:00:00", # Optional. Last modified. "uuid": "str" # Optional. Unique id. @@ -205633,6 +205974,7 @@ def update_agent( # JSON input template you can fill out and use as your body input. body = { + "agent_log_insights_enabled": bool, # Optional. "anthropic_key_uuid": "str", # Optional. Optional anthropic key uuid for use with anthropic models. "conversation_logs_enabled": bool, # Optional. Optional update of @@ -205851,6 +206193,12 @@ def update_agent( "tokens": 0, # Optional. Number of tokens. "total_datasources": 0, # Optional. Number of datasources being indexed. + "total_items_failed": "str", # Optional. + Total Items Failed. + "total_items_indexed": "str", # Optional. + Total Items Indexed. + "total_items_skipped": "str", # Optional. + Total Items Skipped. "updated_at": "2020-02-20 00:00:00", # Optional. Last modified. "uuid": "str" # Optional. Unique id. @@ -205875,6 +206223,10 @@ def update_agent( identifier. "galileo_project_name": "str", # Optional. Name of the Galileo project. + "insights_enabled": bool, # Optional. Whether insights are + enabled. + "insights_enabled_at": "2020-02-20 00:00:00", # Optional. + Timestamp when insights were enabled. "log_stream_id": "str", # Optional. Identifier for the log stream. "log_stream_name": "str" # Optional. Name of the log stream. @@ -206065,6 +206417,12 @@ def update_agent( tokens. "total_datasources": 0, # Optional. Number of datasources being indexed. + "total_items_failed": "str", # + Optional. Total Items Failed. + "total_items_indexed": "str", # + Optional. Total Items Indexed. + "total_items_skipped": "str", # + Optional. Total Items Skipped. "updated_at": "2020-02-20 00:00:00", # Optional. Last modified. "uuid": "str" # Optional. Unique id. @@ -206568,6 +206926,12 @@ def delete_agent(self, uuid: str, **kwargs: Any) -> JSON: "tokens": 0, # Optional. Number of tokens. "total_datasources": 0, # Optional. Number of datasources being indexed. + "total_items_failed": "str", # Optional. + Total Items Failed. + "total_items_indexed": "str", # Optional. + Total Items Indexed. + "total_items_skipped": "str", # Optional. + Total Items Skipped. "updated_at": "2020-02-20 00:00:00", # Optional. Last modified. "uuid": "str" # Optional. Unique id. @@ -206592,6 +206956,10 @@ def delete_agent(self, uuid: str, **kwargs: Any) -> JSON: identifier. "galileo_project_name": "str", # Optional. Name of the Galileo project. + "insights_enabled": bool, # Optional. Whether insights are + enabled. + "insights_enabled_at": "2020-02-20 00:00:00", # Optional. + Timestamp when insights were enabled. "log_stream_id": "str", # Optional. Identifier for the log stream. "log_stream_name": "str" # Optional. Name of the log stream. @@ -206782,6 +207150,12 @@ def delete_agent(self, uuid: str, **kwargs: Any) -> JSON: tokens. "total_datasources": 0, # Optional. Number of datasources being indexed. + "total_items_failed": "str", # + Optional. Total Items Failed. + "total_items_indexed": "str", # + Optional. Total Items Indexed. + "total_items_skipped": "str", # + Optional. Total Items Skipped. "updated_at": "2020-02-20 00:00:00", # Optional. Last modified. "uuid": "str" # Optional. Unique id. @@ -207283,6 +207657,12 @@ def get_agent_children(self, uuid: str, **kwargs: Any) -> JSON: tokens. "total_datasources": 0, # Optional. Number of datasources being indexed. + "total_items_failed": "str", # + Optional. Total Items Failed. + "total_items_indexed": "str", # + Optional. Total Items Indexed. + "total_items_skipped": "str", # + Optional. Total Items Skipped. "updated_at": "2020-02-20 00:00:00", # Optional. Last modified. "uuid": "str" # Optional. Unique id. @@ -207309,6 +207689,10 @@ def get_agent_children(self, uuid: str, **kwargs: Any) -> JSON: project identifier. "galileo_project_name": "str", # Optional. Name of the Galileo project. + "insights_enabled": bool, # Optional. Whether + insights are enabled. + "insights_enabled_at": "2020-02-20 00:00:00", # + Optional. Timestamp when insights were enabled. "log_stream_id": "str", # Optional. Identifier for the log stream. "log_stream_name": "str" # Optional. Name of the log @@ -207516,6 +207900,12 @@ def get_agent_children(self, uuid: str, **kwargs: Any) -> JSON: Number of tokens. "total_datasources": 0, # Optional. Number of datasources being indexed. + "total_items_failed": "str", + # Optional. Total Items Failed. + "total_items_indexed": "str", + # Optional. Total Items Indexed. + "total_items_skipped": "str", + # Optional. Total Items Skipped. "updated_at": "2020-02-20 00:00:00", # Optional. Last modified. "uuid": "str" # Optional. @@ -208046,6 +208436,12 @@ def update_agent_deployment_visibility( "tokens": 0, # Optional. Number of tokens. "total_datasources": 0, # Optional. Number of datasources being indexed. + "total_items_failed": "str", # Optional. + Total Items Failed. + "total_items_indexed": "str", # Optional. + Total Items Indexed. + "total_items_skipped": "str", # Optional. + Total Items Skipped. "updated_at": "2020-02-20 00:00:00", # Optional. Last modified. "uuid": "str" # Optional. Unique id. @@ -208070,6 +208466,10 @@ def update_agent_deployment_visibility( identifier. "galileo_project_name": "str", # Optional. Name of the Galileo project. + "insights_enabled": bool, # Optional. Whether insights are + enabled. + "insights_enabled_at": "2020-02-20 00:00:00", # Optional. + Timestamp when insights were enabled. "log_stream_id": "str", # Optional. Identifier for the log stream. "log_stream_name": "str" # Optional. Name of the log stream. @@ -208260,6 +208660,12 @@ def update_agent_deployment_visibility( tokens. "total_datasources": 0, # Optional. Number of datasources being indexed. + "total_items_failed": "str", # + Optional. Total Items Failed. + "total_items_indexed": "str", # + Optional. Total Items Indexed. + "total_items_skipped": "str", # + Optional. Total Items Skipped. "updated_at": "2020-02-20 00:00:00", # Optional. Last modified. "uuid": "str" # Optional. Unique id. @@ -208682,6 +209088,12 @@ def update_agent_deployment_visibility( "tokens": 0, # Optional. Number of tokens. "total_datasources": 0, # Optional. Number of datasources being indexed. + "total_items_failed": "str", # Optional. + Total Items Failed. + "total_items_indexed": "str", # Optional. + Total Items Indexed. + "total_items_skipped": "str", # Optional. + Total Items Skipped. "updated_at": "2020-02-20 00:00:00", # Optional. Last modified. "uuid": "str" # Optional. Unique id. @@ -208706,6 +209118,10 @@ def update_agent_deployment_visibility( identifier. "galileo_project_name": "str", # Optional. Name of the Galileo project. + "insights_enabled": bool, # Optional. Whether insights are + enabled. + "insights_enabled_at": "2020-02-20 00:00:00", # Optional. + Timestamp when insights were enabled. "log_stream_id": "str", # Optional. Identifier for the log stream. "log_stream_name": "str" # Optional. Name of the log stream. @@ -208896,6 +209312,12 @@ def update_agent_deployment_visibility( tokens. "total_datasources": 0, # Optional. Number of datasources being indexed. + "total_items_failed": "str", # + Optional. Total Items Failed. + "total_items_indexed": "str", # + Optional. Total Items Indexed. + "total_items_skipped": "str", # + Optional. Total Items Skipped. "updated_at": "2020-02-20 00:00:00", # Optional. Last modified. "uuid": "str" # Optional. Unique id. @@ -209324,6 +209746,12 @@ def update_agent_deployment_visibility( "tokens": 0, # Optional. Number of tokens. "total_datasources": 0, # Optional. Number of datasources being indexed. + "total_items_failed": "str", # Optional. + Total Items Failed. + "total_items_indexed": "str", # Optional. + Total Items Indexed. + "total_items_skipped": "str", # Optional. + Total Items Skipped. "updated_at": "2020-02-20 00:00:00", # Optional. Last modified. "uuid": "str" # Optional. Unique id. @@ -209348,6 +209776,10 @@ def update_agent_deployment_visibility( identifier. "galileo_project_name": "str", # Optional. Name of the Galileo project. + "insights_enabled": bool, # Optional. Whether insights are + enabled. + "insights_enabled_at": "2020-02-20 00:00:00", # Optional. + Timestamp when insights were enabled. "log_stream_id": "str", # Optional. Identifier for the log stream. "log_stream_name": "str" # Optional. Name of the log stream. @@ -209538,6 +209970,12 @@ def update_agent_deployment_visibility( tokens. "total_datasources": 0, # Optional. Number of datasources being indexed. + "total_items_failed": "str", # + Optional. Total Items Failed. + "total_items_indexed": "str", # + Optional. Total Items Indexed. + "total_items_skipped": "str", # + Optional. Total Items Skipped. "updated_at": "2020-02-20 00:00:00", # Optional. Last modified. "uuid": "str" # Optional. Unique id. @@ -209849,6 +210287,158 @@ def update_agent_deployment_visibility( return cast(JSON, deserialized) # type: ignore + @distributed_trace + def get_agent_usage( + self, + uuid: str, + *, + start: Optional[str] = None, + stop: Optional[str] = None, + **kwargs: Any, + ) -> JSON: + # pylint: disable=line-too-long + """Get Agent Usage. + + To get agent usage, send a GET request to ``/v2/gen-ai/agents/{uuid}/usage``. Returns usage + metrics for the specified agent within the provided time range. + + :param uuid: Agent id. Required. + :type uuid: str + :keyword start: Return all usage data from this date. Default value is None. + :paramtype start: str + :keyword stop: Return all usage data up to this date, if omitted, will return up to the current + date. Default value is None. + :paramtype stop: str + :return: JSON object + :rtype: JSON + :raises ~azure.core.exceptions.HttpResponseError: + + Example: + .. code-block:: python + + # response body for status code(s): 200 + response == { + "log_insights_usage": { + "measurements": [ + { + "tokens": 0, # Optional. Resource Usage Description. + "usage_type": "str" # Optional. Resource Usage + Description. + } + ], + "resource_uuid": "str", # Optional. Resource Usage Description. + "start": "2020-02-20 00:00:00", # Optional. Resource Usage + Description. + "stop": "2020-02-20 00:00:00" # Optional. Resource Usage + Description. + }, + "usage": { + "measurements": [ + { + "tokens": 0, # Optional. Resource Usage Description. + "usage_type": "str" # Optional. Resource Usage + Description. + } + ], + "resource_uuid": "str", # Optional. Resource Usage Description. + "start": "2020-02-20 00:00:00", # Optional. Resource Usage + Description. + "stop": "2020-02-20 00:00:00" # Optional. Resource Usage + Description. + } + } + # response body for status code(s): 404 + response == { + "id": "str", # A short identifier corresponding to the HTTP status code + returned. For example, the ID for a response returning a 404 status code would + be "not_found.". Required. + "message": "str", # A message providing additional information about the + error, including details to help resolve it when possible. Required. + "request_id": "str" # Optional. Optionally, some endpoints may include a + request ID that should be provided when reporting bugs or opening support + tickets to help identify the issue. + } + """ + error_map: MutableMapping[int, Type[HttpResponseError]] = { + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + 401: cast( + Type[HttpResponseError], + lambda response: ClientAuthenticationError(response=response), + ), + 429: HttpResponseError, + 500: HttpResponseError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[JSON] = kwargs.pop("cls", None) + + _request = build_genai_get_agent_usage_request( + uuid=uuid, + start=start, + stop=stop, + headers=_headers, + params=_params, + ) + _request.url = self._client.format_url(_request.url) + + _stream = False + pipeline_response: PipelineResponse = ( + self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + ) + + response = pipeline_response.http_response + + if response.status_code not in [200, 404]: + if _stream: + response.read() # Load the body in memory and close the socket + map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + raise HttpResponseError(response=response) + + response_headers = {} + if response.status_code == 200: + response_headers["ratelimit-limit"] = self._deserialize( + "int", response.headers.get("ratelimit-limit") + ) + response_headers["ratelimit-remaining"] = self._deserialize( + "int", response.headers.get("ratelimit-remaining") + ) + response_headers["ratelimit-reset"] = self._deserialize( + "int", response.headers.get("ratelimit-reset") + ) + + if response.content: + deserialized = response.json() + else: + deserialized = None + + if response.status_code == 404: + response_headers["ratelimit-limit"] = self._deserialize( + "int", response.headers.get("ratelimit-limit") + ) + response_headers["ratelimit-remaining"] = self._deserialize( + "int", response.headers.get("ratelimit-remaining") + ) + response_headers["ratelimit-reset"] = self._deserialize( + "int", response.headers.get("ratelimit-reset") + ) + + if response.content: + deserialized = response.json() + else: + deserialized = None + + if cls: + return cls(pipeline_response, cast(JSON, deserialized), response_headers) # type: ignore + + return cast(JSON, deserialized) # type: ignore + @distributed_trace def list_agent_versions( self, @@ -211467,6 +212057,12 @@ def list_agents_by_anthropic_key( tokens. "total_datasources": 0, # Optional. Number of datasources being indexed. + "total_items_failed": "str", # + Optional. Total Items Failed. + "total_items_indexed": "str", # + Optional. Total Items Indexed. + "total_items_skipped": "str", # + Optional. Total Items Skipped. "updated_at": "2020-02-20 00:00:00", # Optional. Last modified. "uuid": "str" # Optional. Unique id. @@ -211493,6 +212089,10 @@ def list_agents_by_anthropic_key( project identifier. "galileo_project_name": "str", # Optional. Name of the Galileo project. + "insights_enabled": bool, # Optional. Whether + insights are enabled. + "insights_enabled_at": "2020-02-20 00:00:00", # + Optional. Timestamp when insights were enabled. "log_stream_id": "str", # Optional. Identifier for the log stream. "log_stream_name": "str" # Optional. Name of the log @@ -211700,6 +212300,12 @@ def list_agents_by_anthropic_key( Number of tokens. "total_datasources": 0, # Optional. Number of datasources being indexed. + "total_items_failed": "str", + # Optional. Total Items Failed. + "total_items_indexed": "str", + # Optional. Total Items Indexed. + "total_items_skipped": "str", + # Optional. Total Items Skipped. "updated_at": "2020-02-20 00:00:00", # Optional. Last modified. "uuid": "str" # Optional. @@ -214643,6 +215249,11 @@ def list_indexing_jobs( "tokens": 0, # Optional. Number of tokens. "total_datasources": 0, # Optional. Number of datasources being indexed. + "total_items_failed": "str", # Optional. Total Items Failed. + "total_items_indexed": "str", # Optional. Total Items + Indexed. + "total_items_skipped": "str", # Optional. Total Items + Skipped. "updated_at": "2020-02-20 00:00:00", # Optional. Last modified. "uuid": "str" # Optional. Unique id. @@ -214816,6 +215427,9 @@ def create_indexing_job( "tokens": 0, # Optional. Number of tokens. "total_datasources": 0, # Optional. Number of datasources being indexed. + "total_items_failed": "str", # Optional. Total Items Failed. + "total_items_indexed": "str", # Optional. Total Items Indexed. + "total_items_skipped": "str", # Optional. Total Items Skipped. "updated_at": "2020-02-20 00:00:00", # Optional. Last modified. "uuid": "str" # Optional. Unique id. } @@ -214887,6 +215501,9 @@ def create_indexing_job( "tokens": 0, # Optional. Number of tokens. "total_datasources": 0, # Optional. Number of datasources being indexed. + "total_items_failed": "str", # Optional. Total Items Failed. + "total_items_indexed": "str", # Optional. Total Items Indexed. + "total_items_skipped": "str", # Optional. Total Items Skipped. "updated_at": "2020-02-20 00:00:00", # Optional. Last modified. "uuid": "str" # Optional. Unique id. } @@ -214960,6 +215577,9 @@ def create_indexing_job( "tokens": 0, # Optional. Number of tokens. "total_datasources": 0, # Optional. Number of datasources being indexed. + "total_items_failed": "str", # Optional. Total Items Failed. + "total_items_indexed": "str", # Optional. Total Items Indexed. + "total_items_skipped": "str", # Optional. Total Items Skipped. "updated_at": "2020-02-20 00:00:00", # Optional. Last modified. "uuid": "str" # Optional. Unique id. } @@ -215262,6 +215882,9 @@ def get_indexing_job(self, uuid: str, **kwargs: Any) -> JSON: "tokens": 0, # Optional. Number of tokens. "total_datasources": 0, # Optional. Number of datasources being indexed. + "total_items_failed": "str", # Optional. Total Items Failed. + "total_items_indexed": "str", # Optional. Total Items Indexed. + "total_items_skipped": "str", # Optional. Total Items Skipped. "updated_at": "2020-02-20 00:00:00", # Optional. Last modified. "uuid": "str" # Optional. Unique id. } @@ -215418,6 +216041,9 @@ def cancel_indexing_job( "tokens": 0, # Optional. Number of tokens. "total_datasources": 0, # Optional. Number of datasources being indexed. + "total_items_failed": "str", # Optional. Total Items Failed. + "total_items_indexed": "str", # Optional. Total Items Indexed. + "total_items_skipped": "str", # Optional. Total Items Skipped. "updated_at": "2020-02-20 00:00:00", # Optional. Last modified. "uuid": "str" # Optional. Unique id. } @@ -215492,6 +216118,9 @@ def cancel_indexing_job( "tokens": 0, # Optional. Number of tokens. "total_datasources": 0, # Optional. Number of datasources being indexed. + "total_items_failed": "str", # Optional. Total Items Failed. + "total_items_indexed": "str", # Optional. Total Items Indexed. + "total_items_skipped": "str", # Optional. Total Items Skipped. "updated_at": "2020-02-20 00:00:00", # Optional. Last modified. "uuid": "str" # Optional. Unique id. } @@ -215563,6 +216192,9 @@ def cancel_indexing_job( "tokens": 0, # Optional. Number of tokens. "total_datasources": 0, # Optional. Number of datasources being indexed. + "total_items_failed": "str", # Optional. Total Items Failed. + "total_items_indexed": "str", # Optional. Total Items Indexed. + "total_items_skipped": "str", # Optional. Total Items Skipped. "updated_at": "2020-02-20 00:00:00", # Optional. Last modified. "uuid": "str" # Optional. Unique id. } @@ -215740,6 +216372,12 @@ def list_knowledge_bases( "tokens": 0, # Optional. Number of tokens. "total_datasources": 0, # Optional. Number of datasources being indexed. + "total_items_failed": "str", # Optional. Total Items + Failed. + "total_items_indexed": "str", # Optional. Total + Items Indexed. + "total_items_skipped": "str", # Optional. Total + Items Skipped. "updated_at": "2020-02-20 00:00:00", # Optional. Last modified. "uuid": "str" # Optional. Unique id. @@ -215907,6 +216545,12 @@ def create_knowledge_base( data_source_details. "bucket_region": "str", # Optional. Deprecated, moved to data_source_details. + "dropbox_data_source": { + "folder": "str", # Optional. Dropbox Data Source. + "refresh_token": "str" # Optional. Refresh token. + you can obrain a refresh token by following the oauth2 flow. see + /v2/gen-ai/oauth2/dropbox/tokens for reference. + }, "file_upload_data_source": { "original_file_name": "str", # Optional. The original file name. @@ -215997,6 +216641,11 @@ def create_knowledge_base( "tokens": 0, # Optional. Number of tokens. "total_datasources": 0, # Optional. Number of datasources being indexed. + "total_items_failed": "str", # Optional. Total Items Failed. + "total_items_indexed": "str", # Optional. Total Items + Indexed. + "total_items_skipped": "str", # Optional. Total Items + Skipped. "updated_at": "2020-02-20 00:00:00", # Optional. Last modified. "uuid": "str" # Optional. Unique id. @@ -216091,6 +216740,11 @@ def create_knowledge_base( "tokens": 0, # Optional. Number of tokens. "total_datasources": 0, # Optional. Number of datasources being indexed. + "total_items_failed": "str", # Optional. Total Items Failed. + "total_items_indexed": "str", # Optional. Total Items + Indexed. + "total_items_skipped": "str", # Optional. Total Items + Skipped. "updated_at": "2020-02-20 00:00:00", # Optional. Last modified. "uuid": "str" # Optional. Unique id. @@ -216157,6 +216811,12 @@ def create_knowledge_base( data_source_details. "bucket_region": "str", # Optional. Deprecated, moved to data_source_details. + "dropbox_data_source": { + "folder": "str", # Optional. Dropbox Data Source. + "refresh_token": "str" # Optional. Refresh token. + you can obrain a refresh token by following the oauth2 flow. see + /v2/gen-ai/oauth2/dropbox/tokens for reference. + }, "file_upload_data_source": { "original_file_name": "str", # Optional. The original file name. @@ -216247,6 +216907,11 @@ def create_knowledge_base( "tokens": 0, # Optional. Number of tokens. "total_datasources": 0, # Optional. Number of datasources being indexed. + "total_items_failed": "str", # Optional. Total Items Failed. + "total_items_indexed": "str", # Optional. Total Items + Indexed. + "total_items_skipped": "str", # Optional. Total Items + Skipped. "updated_at": "2020-02-20 00:00:00", # Optional. Last modified. "uuid": "str" # Optional. Unique id. @@ -216412,6 +217077,10 @@ def list_knowledge_base_data_sources( Deprecated, moved to data_source_details. "created_at": "2020-02-20 00:00:00", # Optional. Creation date / time. + "dropbox_data_source": { + "folder": "str" # Optional. Dropbox Data Source for + Display. + }, "file_upload_data_source": { "original_file_name": "str", # Optional. The original file name. @@ -216484,6 +217153,12 @@ def list_knowledge_base_data_sources( "tokens": 0, # Optional. Number of tokens. "total_datasources": 0, # Optional. Number of datasources being indexed. + "total_items_failed": "str", # Optional. Total Items + Failed. + "total_items_indexed": "str", # Optional. Total + Items Indexed. + "total_items_skipped": "str", # Optional. Total + Items Skipped. "updated_at": "2020-02-20 00:00:00", # Optional. Last modified. "uuid": "str" # Optional. Unique id. @@ -216693,6 +217368,9 @@ def create_knowledge_base_data_source( Deprecated, moved to data_source_details. "created_at": "2020-02-20 00:00:00", # Optional. Creation date / time. + "dropbox_data_source": { + "folder": "str" # Optional. Dropbox Data Source for Display. + }, "file_upload_data_source": { "original_file_name": "str", # Optional. The original file name. @@ -216764,6 +217442,11 @@ def create_knowledge_base_data_source( "tokens": 0, # Optional. Number of tokens. "total_datasources": 0, # Optional. Number of datasources being indexed. + "total_items_failed": "str", # Optional. Total Items Failed. + "total_items_indexed": "str", # Optional. Total Items + Indexed. + "total_items_skipped": "str", # Optional. Total Items + Skipped. "updated_at": "2020-02-20 00:00:00", # Optional. Last modified. "uuid": "str" # Optional. Unique id. @@ -216847,6 +217530,9 @@ def create_knowledge_base_data_source( Deprecated, moved to data_source_details. "created_at": "2020-02-20 00:00:00", # Optional. Creation date / time. + "dropbox_data_source": { + "folder": "str" # Optional. Dropbox Data Source for Display. + }, "file_upload_data_source": { "original_file_name": "str", # Optional. The original file name. @@ -216918,6 +217604,11 @@ def create_knowledge_base_data_source( "tokens": 0, # Optional. Number of tokens. "total_datasources": 0, # Optional. Number of datasources being indexed. + "total_items_failed": "str", # Optional. Total Items Failed. + "total_items_indexed": "str", # Optional. Total Items + Indexed. + "total_items_skipped": "str", # Optional. Total Items + Skipped. "updated_at": "2020-02-20 00:00:00", # Optional. Last modified. "uuid": "str" # Optional. Unique id. @@ -217025,6 +217716,9 @@ def create_knowledge_base_data_source( Deprecated, moved to data_source_details. "created_at": "2020-02-20 00:00:00", # Optional. Creation date / time. + "dropbox_data_source": { + "folder": "str" # Optional. Dropbox Data Source for Display. + }, "file_upload_data_source": { "original_file_name": "str", # Optional. The original file name. @@ -217096,6 +217790,11 @@ def create_knowledge_base_data_source( "tokens": 0, # Optional. Number of tokens. "total_datasources": 0, # Optional. Number of datasources being indexed. + "total_items_failed": "str", # Optional. Total Items Failed. + "total_items_indexed": "str", # Optional. Total Items + Indexed. + "total_items_skipped": "str", # Optional. Total Items + Skipped. "updated_at": "2020-02-20 00:00:00", # Optional. Last modified. "uuid": "str" # Optional. Unique id. @@ -217409,6 +218108,11 @@ def get_knowledge_base(self, uuid: str, **kwargs: Any) -> JSON: "tokens": 0, # Optional. Number of tokens. "total_datasources": 0, # Optional. Number of datasources being indexed. + "total_items_failed": "str", # Optional. Total Items Failed. + "total_items_indexed": "str", # Optional. Total Items + Indexed. + "total_items_skipped": "str", # Optional. Total Items + Skipped. "updated_at": "2020-02-20 00:00:00", # Optional. Last modified. "uuid": "str" # Optional. Unique id. @@ -217598,6 +218302,11 @@ def update_knowledge_base( "tokens": 0, # Optional. Number of tokens. "total_datasources": 0, # Optional. Number of datasources being indexed. + "total_items_failed": "str", # Optional. Total Items Failed. + "total_items_indexed": "str", # Optional. Total Items + Indexed. + "total_items_skipped": "str", # Optional. Total Items + Skipped. "updated_at": "2020-02-20 00:00:00", # Optional. Last modified. "uuid": "str" # Optional. Unique id. @@ -217695,6 +218404,11 @@ def update_knowledge_base( "tokens": 0, # Optional. Number of tokens. "total_datasources": 0, # Optional. Number of datasources being indexed. + "total_items_failed": "str", # Optional. Total Items Failed. + "total_items_indexed": "str", # Optional. Total Items + Indexed. + "total_items_skipped": "str", # Optional. Total Items + Skipped. "updated_at": "2020-02-20 00:00:00", # Optional. Last modified. "uuid": "str" # Optional. Unique id. @@ -217799,6 +218513,11 @@ def update_knowledge_base( "tokens": 0, # Optional. Number of tokens. "total_datasources": 0, # Optional. Number of datasources being indexed. + "total_items_failed": "str", # Optional. Total Items Failed. + "total_items_indexed": "str", # Optional. Total Items + Indexed. + "total_items_skipped": "str", # Optional. Total Items + Skipped. "updated_at": "2020-02-20 00:00:00", # Optional. Last modified. "uuid": "str" # Optional. Unique id. @@ -218097,9 +218816,10 @@ def list_models( }, "created_at": "2020-02-20 00:00:00", # Optional. Creation date / time. + "id": "str", # Optional. Human-readable model identifier. "is_foundational": bool, # Optional. True if it is a foundational model provided by do. - "name": "str", # Optional. Name of the model. + "name": "str", # Optional. Display name of the model. "parent_uuid": "str", # Optional. Unique id of the model, this model is based on. "updated_at": "2020-02-20 00:00:00", # Optional. Last @@ -219088,6 +219808,359 @@ def regenerate_model_api_key(self, api_key_uuid: str, **kwargs: Any) -> JSON: return cast(JSON, deserialized) # type: ignore + @overload + def create_oauth2_dropbox_tokens( + self, + body: Optional[JSON] = None, + *, + content_type: str = "application/json", + **kwargs: Any, + ) -> JSON: + # pylint: disable=line-too-long + """Get Oauth2 Dropbox Tokens. + + To obtain the refresh token, needed for creation of data sources, send a GET request to + ``/v2/gen-ai/oauth2/dropbox/tokens``. Pass the code you obtrained from the oauth flow in the + field 'code'. + + :param body: Default value is None. + :type body: JSON + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: JSON object + :rtype: JSON + :raises ~azure.core.exceptions.HttpResponseError: + + Example: + .. code-block:: python + + # JSON input template you can fill out and use as your body input. + body = { + "code": "str", # Optional. The oauth2 code from google. + "redirect_url": "str" # Optional. Redirect url. + } + + # response body for status code(s): 200 + response == { + "refresh_token": "str", # Optional. The refresh token. + "token": "str" # Optional. The access token. + } + # response body for status code(s): 404 + response == { + "id": "str", # A short identifier corresponding to the HTTP status code + returned. For example, the ID for a response returning a 404 status code would + be "not_found.". Required. + "message": "str", # A message providing additional information about the + error, including details to help resolve it when possible. Required. + "request_id": "str" # Optional. Optionally, some endpoints may include a + request ID that should be provided when reporting bugs or opening support + tickets to help identify the issue. + } + """ + + @overload + def create_oauth2_dropbox_tokens( + self, + body: Optional[IO[bytes]] = None, + *, + content_type: str = "application/json", + **kwargs: Any, + ) -> JSON: + # pylint: disable=line-too-long + """Get Oauth2 Dropbox Tokens. + + To obtain the refresh token, needed for creation of data sources, send a GET request to + ``/v2/gen-ai/oauth2/dropbox/tokens``. Pass the code you obtrained from the oauth flow in the + field 'code'. + + :param body: Default value is None. + :type body: IO[bytes] + :keyword content_type: Body Parameter content-type. Content type parameter for binary body. + Default value is "application/json". + :paramtype content_type: str + :return: JSON object + :rtype: JSON + :raises ~azure.core.exceptions.HttpResponseError: + + Example: + .. code-block:: python + + # response body for status code(s): 200 + response == { + "refresh_token": "str", # Optional. The refresh token. + "token": "str" # Optional. The access token. + } + # response body for status code(s): 404 + response == { + "id": "str", # A short identifier corresponding to the HTTP status code + returned. For example, the ID for a response returning a 404 status code would + be "not_found.". Required. + "message": "str", # A message providing additional information about the + error, including details to help resolve it when possible. Required. + "request_id": "str" # Optional. Optionally, some endpoints may include a + request ID that should be provided when reporting bugs or opening support + tickets to help identify the issue. + } + """ + + @distributed_trace + def create_oauth2_dropbox_tokens( + self, body: Optional[Union[JSON, IO[bytes]]] = None, **kwargs: Any + ) -> JSON: + # pylint: disable=line-too-long + """Get Oauth2 Dropbox Tokens. + + To obtain the refresh token, needed for creation of data sources, send a GET request to + ``/v2/gen-ai/oauth2/dropbox/tokens``. Pass the code you obtrained from the oauth flow in the + field 'code'. + + :param body: Is either a JSON type or a IO[bytes] type. Default value is None. + :type body: JSON or IO[bytes] + :return: JSON object + :rtype: JSON + :raises ~azure.core.exceptions.HttpResponseError: + + Example: + .. code-block:: python + + # JSON input template you can fill out and use as your body input. + body = { + "code": "str", # Optional. The oauth2 code from google. + "redirect_url": "str" # Optional. Redirect url. + } + + # response body for status code(s): 200 + response == { + "refresh_token": "str", # Optional. The refresh token. + "token": "str" # Optional. The access token. + } + # response body for status code(s): 404 + response == { + "id": "str", # A short identifier corresponding to the HTTP status code + returned. For example, the ID for a response returning a 404 status code would + be "not_found.". Required. + "message": "str", # A message providing additional information about the + error, including details to help resolve it when possible. Required. + "request_id": "str" # Optional. Optionally, some endpoints may include a + request ID that should be provided when reporting bugs or opening support + tickets to help identify the issue. + } + """ + error_map: MutableMapping[int, Type[HttpResponseError]] = { + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + 401: cast( + Type[HttpResponseError], + lambda response: ClientAuthenticationError(response=response), + ), + 429: HttpResponseError, + 500: HttpResponseError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = kwargs.pop("params", {}) or {} + + content_type: Optional[str] = kwargs.pop( + "content_type", _headers.pop("Content-Type", None) + ) + cls: ClsType[JSON] = kwargs.pop("cls", None) + + content_type = content_type or "application/json" + _json = None + _content = None + if isinstance(body, (IOBase, bytes)): + _content = body + else: + if body is not None: + _json = body + else: + _json = None + + _request = build_genai_create_oauth2_dropbox_tokens_request( + content_type=content_type, + json=_json, + content=_content, + headers=_headers, + params=_params, + ) + _request.url = self._client.format_url(_request.url) + + _stream = False + pipeline_response: PipelineResponse = ( + self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + ) + + response = pipeline_response.http_response + + if response.status_code not in [200, 404]: + if _stream: + response.read() # Load the body in memory and close the socket + map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + raise HttpResponseError(response=response) + + response_headers = {} + if response.status_code == 200: + response_headers["ratelimit-limit"] = self._deserialize( + "int", response.headers.get("ratelimit-limit") + ) + response_headers["ratelimit-remaining"] = self._deserialize( + "int", response.headers.get("ratelimit-remaining") + ) + response_headers["ratelimit-reset"] = self._deserialize( + "int", response.headers.get("ratelimit-reset") + ) + + if response.content: + deserialized = response.json() + else: + deserialized = None + + if response.status_code == 404: + response_headers["ratelimit-limit"] = self._deserialize( + "int", response.headers.get("ratelimit-limit") + ) + response_headers["ratelimit-remaining"] = self._deserialize( + "int", response.headers.get("ratelimit-remaining") + ) + response_headers["ratelimit-reset"] = self._deserialize( + "int", response.headers.get("ratelimit-reset") + ) + + if response.content: + deserialized = response.json() + else: + deserialized = None + + if cls: + return cls(pipeline_response, cast(JSON, deserialized), response_headers) # type: ignore + + return cast(JSON, deserialized) # type: ignore + + @distributed_trace + def get_oauth2_url( + self, + *, + type: Optional[str] = None, + redirect_url: Optional[str] = None, + **kwargs: Any, + ) -> JSON: + # pylint: disable=line-too-long + """Get Oauth2 URL. + + To generate an Oauth2-URL for use with your localhost, send a GET request to + ``/v2/gen-ai/oauth2/url``. Pass 'http://localhost:3000 as redirect_url. + + :keyword type: Type "google" / "dropbox". Default value is None. + :paramtype type: str + :keyword redirect_url: The redirect url. Default value is None. + :paramtype redirect_url: str + :return: JSON object + :rtype: JSON + :raises ~azure.core.exceptions.HttpResponseError: + + Example: + .. code-block:: python + + # response body for status code(s): 200 + response == { + "url": "str" # Optional. The oauth2 url. + } + # response body for status code(s): 404 + response == { + "id": "str", # A short identifier corresponding to the HTTP status code + returned. For example, the ID for a response returning a 404 status code would + be "not_found.". Required. + "message": "str", # A message providing additional information about the + error, including details to help resolve it when possible. Required. + "request_id": "str" # Optional. Optionally, some endpoints may include a + request ID that should be provided when reporting bugs or opening support + tickets to help identify the issue. + } + """ + error_map: MutableMapping[int, Type[HttpResponseError]] = { + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + 401: cast( + Type[HttpResponseError], + lambda response: ClientAuthenticationError(response=response), + ), + 429: HttpResponseError, + 500: HttpResponseError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[JSON] = kwargs.pop("cls", None) + + _request = build_genai_get_oauth2_url_request( + type=type, + redirect_url=redirect_url, + headers=_headers, + params=_params, + ) + _request.url = self._client.format_url(_request.url) + + _stream = False + pipeline_response: PipelineResponse = ( + self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + ) + + response = pipeline_response.http_response + + if response.status_code not in [200, 404]: + if _stream: + response.read() # Load the body in memory and close the socket + map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + raise HttpResponseError(response=response) + + response_headers = {} + if response.status_code == 200: + response_headers["ratelimit-limit"] = self._deserialize( + "int", response.headers.get("ratelimit-limit") + ) + response_headers["ratelimit-remaining"] = self._deserialize( + "int", response.headers.get("ratelimit-remaining") + ) + response_headers["ratelimit-reset"] = self._deserialize( + "int", response.headers.get("ratelimit-reset") + ) + + if response.content: + deserialized = response.json() + else: + deserialized = None + + if response.status_code == 404: + response_headers["ratelimit-limit"] = self._deserialize( + "int", response.headers.get("ratelimit-limit") + ) + response_headers["ratelimit-remaining"] = self._deserialize( + "int", response.headers.get("ratelimit-remaining") + ) + response_headers["ratelimit-reset"] = self._deserialize( + "int", response.headers.get("ratelimit-reset") + ) + + if response.content: + deserialized = response.json() + else: + deserialized = None + + if cls: + return cls(pipeline_response, cast(JSON, deserialized), response_headers) # type: ignore + + return cast(JSON, deserialized) # type: ignore + @distributed_trace def list_openai_api_keys( self, @@ -220613,6 +221686,12 @@ def list_agents_by_openai_key( tokens. "total_datasources": 0, # Optional. Number of datasources being indexed. + "total_items_failed": "str", # + Optional. Total Items Failed. + "total_items_indexed": "str", # + Optional. Total Items Indexed. + "total_items_skipped": "str", # + Optional. Total Items Skipped. "updated_at": "2020-02-20 00:00:00", # Optional. Last modified. "uuid": "str" # Optional. Unique id. @@ -220639,6 +221718,10 @@ def list_agents_by_openai_key( project identifier. "galileo_project_name": "str", # Optional. Name of the Galileo project. + "insights_enabled": bool, # Optional. Whether + insights are enabled. + "insights_enabled_at": "2020-02-20 00:00:00", # + Optional. Timestamp when insights were enabled. "log_stream_id": "str", # Optional. Identifier for the log stream. "log_stream_name": "str" # Optional. Name of the log @@ -220846,6 +221929,12 @@ def list_agents_by_openai_key( Number of tokens. "total_datasources": 0, # Optional. Number of datasources being indexed. + "total_items_failed": "str", + # Optional. Total Items Failed. + "total_items_indexed": "str", + # Optional. Total Items Indexed. + "total_items_skipped": "str", + # Optional. Total Items Skipped. "updated_at": "2020-02-20 00:00:00", # Optional. Last modified. "uuid": "str" # Optional. @@ -221541,6 +222630,12 @@ def list_workspaces(self, **kwargs: Any) -> JSON: Optional. Number of tokens. "total_datasources": 0, # Optional. Number of datasources being indexed. + "total_items_failed": + "str", # Optional. Total Items Failed. + "total_items_indexed": "str", # Optional. Total + Items Indexed. + "total_items_skipped": "str", # Optional. Total + Items Skipped. "updated_at": "2020-02-20 00:00:00", # Optional. Last modified. "uuid": "str" # @@ -221569,6 +222664,10 @@ def list_workspaces(self, **kwargs: Any) -> JSON: Optional. Galileo project identifier. "galileo_project_name": "str", # Optional. Name of the Galileo project. + "insights_enabled": bool, # + Optional. Whether insights are enabled. + "insights_enabled_at": "2020-02-20 + 00:00:00", # Optional. Timestamp when insights were enabled. "log_stream_id": "str", # Optional. Identifier for the log stream. "log_stream_name": "str" # Optional. @@ -221800,6 +222899,12 @@ def list_workspaces(self, **kwargs: Any) -> JSON: # Optional. Number of tokens. "total_datasources": 0, # Optional. Number of datasources being indexed. + "total_items_failed": "str", # Optional. Total + Items Failed. + "total_items_indexed": "str", # Optional. Total + Items Indexed. + "total_items_skipped": "str", # Optional. Total + Items Skipped. "updated_at": "2020-02-20 00:00:00", # Optional. Last modified. @@ -222351,6 +223456,12 @@ def create_workspace( Number of tokens. "total_datasources": 0, # Optional. Number of datasources being indexed. + "total_items_failed": "str", + # Optional. Total Items Failed. + "total_items_indexed": "str", + # Optional. Total Items Indexed. + "total_items_skipped": "str", + # Optional. Total Items Skipped. "updated_at": "2020-02-20 00:00:00", # Optional. Last modified. "uuid": "str" # Optional. @@ -222379,6 +223490,10 @@ def create_workspace( Galileo project identifier. "galileo_project_name": "str", # Optional. Name of the Galileo project. + "insights_enabled": bool, # Optional. + Whether insights are enabled. + "insights_enabled_at": "2020-02-20 00:00:00", + # Optional. Timestamp when insights were enabled. "log_stream_id": "str", # Optional. Identifier for the log stream. "log_stream_name": "str" # Optional. Name of @@ -222600,6 +223715,12 @@ def create_workspace( Optional. Number of tokens. "total_datasources": 0, # Optional. Number of datasources being indexed. + "total_items_failed": + "str", # Optional. Total Items Failed. + "total_items_indexed": "str", # Optional. Total + Items Indexed. + "total_items_skipped": "str", # Optional. Total + Items Skipped. "updated_at": "2020-02-20 00:00:00", # Optional. Last modified. "uuid": "str" # @@ -223053,6 +224174,12 @@ def create_workspace( Number of tokens. "total_datasources": 0, # Optional. Number of datasources being indexed. + "total_items_failed": "str", + # Optional. Total Items Failed. + "total_items_indexed": "str", + # Optional. Total Items Indexed. + "total_items_skipped": "str", + # Optional. Total Items Skipped. "updated_at": "2020-02-20 00:00:00", # Optional. Last modified. "uuid": "str" # Optional. @@ -223081,6 +224208,10 @@ def create_workspace( Galileo project identifier. "galileo_project_name": "str", # Optional. Name of the Galileo project. + "insights_enabled": bool, # Optional. + Whether insights are enabled. + "insights_enabled_at": "2020-02-20 00:00:00", + # Optional. Timestamp when insights were enabled. "log_stream_id": "str", # Optional. Identifier for the log stream. "log_stream_name": "str" # Optional. Name of @@ -223302,6 +224433,12 @@ def create_workspace( Optional. Number of tokens. "total_datasources": 0, # Optional. Number of datasources being indexed. + "total_items_failed": + "str", # Optional. Total Items Failed. + "total_items_indexed": "str", # Optional. Total + Items Indexed. + "total_items_skipped": "str", # Optional. Total + Items Skipped. "updated_at": "2020-02-20 00:00:00", # Optional. Last modified. "uuid": "str" # @@ -223757,6 +224894,12 @@ def create_workspace( Number of tokens. "total_datasources": 0, # Optional. Number of datasources being indexed. + "total_items_failed": "str", + # Optional. Total Items Failed. + "total_items_indexed": "str", + # Optional. Total Items Indexed. + "total_items_skipped": "str", + # Optional. Total Items Skipped. "updated_at": "2020-02-20 00:00:00", # Optional. Last modified. "uuid": "str" # Optional. @@ -223785,6 +224928,10 @@ def create_workspace( Galileo project identifier. "galileo_project_name": "str", # Optional. Name of the Galileo project. + "insights_enabled": bool, # Optional. + Whether insights are enabled. + "insights_enabled_at": "2020-02-20 00:00:00", + # Optional. Timestamp when insights were enabled. "log_stream_id": "str", # Optional. Identifier for the log stream. "log_stream_name": "str" # Optional. Name of @@ -224006,6 +225153,12 @@ def create_workspace( Optional. Number of tokens. "total_datasources": 0, # Optional. Number of datasources being indexed. + "total_items_failed": + "str", # Optional. Total Items Failed. + "total_items_indexed": "str", # Optional. Total + Items Indexed. + "total_items_skipped": "str", # Optional. Total + Items Skipped. "updated_at": "2020-02-20 00:00:00", # Optional. Last modified. "uuid": "str" # @@ -224543,6 +225696,12 @@ def get_workspace(self, workspace_uuid: str, **kwargs: Any) -> JSON: Number of tokens. "total_datasources": 0, # Optional. Number of datasources being indexed. + "total_items_failed": "str", + # Optional. Total Items Failed. + "total_items_indexed": "str", + # Optional. Total Items Indexed. + "total_items_skipped": "str", + # Optional. Total Items Skipped. "updated_at": "2020-02-20 00:00:00", # Optional. Last modified. "uuid": "str" # Optional. @@ -224571,6 +225730,10 @@ def get_workspace(self, workspace_uuid: str, **kwargs: Any) -> JSON: Galileo project identifier. "galileo_project_name": "str", # Optional. Name of the Galileo project. + "insights_enabled": bool, # Optional. + Whether insights are enabled. + "insights_enabled_at": "2020-02-20 00:00:00", + # Optional. Timestamp when insights were enabled. "log_stream_id": "str", # Optional. Identifier for the log stream. "log_stream_name": "str" # Optional. Name of @@ -224792,6 +225955,12 @@ def get_workspace(self, workspace_uuid: str, **kwargs: Any) -> JSON: Optional. Number of tokens. "total_datasources": 0, # Optional. Number of datasources being indexed. + "total_items_failed": + "str", # Optional. Total Items Failed. + "total_items_indexed": "str", # Optional. Total + Items Indexed. + "total_items_skipped": "str", # Optional. Total + Items Skipped. "updated_at": "2020-02-20 00:00:00", # Optional. Last modified. "uuid": "str" # @@ -225332,6 +226501,12 @@ def update_workspace( Number of tokens. "total_datasources": 0, # Optional. Number of datasources being indexed. + "total_items_failed": "str", + # Optional. Total Items Failed. + "total_items_indexed": "str", + # Optional. Total Items Indexed. + "total_items_skipped": "str", + # Optional. Total Items Skipped. "updated_at": "2020-02-20 00:00:00", # Optional. Last modified. "uuid": "str" # Optional. @@ -225360,6 +226535,10 @@ def update_workspace( Galileo project identifier. "galileo_project_name": "str", # Optional. Name of the Galileo project. + "insights_enabled": bool, # Optional. + Whether insights are enabled. + "insights_enabled_at": "2020-02-20 00:00:00", + # Optional. Timestamp when insights were enabled. "log_stream_id": "str", # Optional. Identifier for the log stream. "log_stream_name": "str" # Optional. Name of @@ -225581,6 +226760,12 @@ def update_workspace( Optional. Number of tokens. "total_datasources": 0, # Optional. Number of datasources being indexed. + "total_items_failed": + "str", # Optional. Total Items Failed. + "total_items_indexed": "str", # Optional. Total + Items Indexed. + "total_items_skipped": "str", # Optional. Total + Items Skipped. "updated_at": "2020-02-20 00:00:00", # Optional. Last modified. "uuid": "str" # @@ -226037,6 +227222,12 @@ def update_workspace( Number of tokens. "total_datasources": 0, # Optional. Number of datasources being indexed. + "total_items_failed": "str", + # Optional. Total Items Failed. + "total_items_indexed": "str", + # Optional. Total Items Indexed. + "total_items_skipped": "str", + # Optional. Total Items Skipped. "updated_at": "2020-02-20 00:00:00", # Optional. Last modified. "uuid": "str" # Optional. @@ -226065,6 +227256,10 @@ def update_workspace( Galileo project identifier. "galileo_project_name": "str", # Optional. Name of the Galileo project. + "insights_enabled": bool, # Optional. + Whether insights are enabled. + "insights_enabled_at": "2020-02-20 00:00:00", + # Optional. Timestamp when insights were enabled. "log_stream_id": "str", # Optional. Identifier for the log stream. "log_stream_name": "str" # Optional. Name of @@ -226286,6 +227481,12 @@ def update_workspace( Optional. Number of tokens. "total_datasources": 0, # Optional. Number of datasources being indexed. + "total_items_failed": + "str", # Optional. Total Items Failed. + "total_items_indexed": "str", # Optional. Total + Items Indexed. + "total_items_skipped": "str", # Optional. Total + Items Skipped. "updated_at": "2020-02-20 00:00:00", # Optional. Last modified. "uuid": "str" # @@ -226744,6 +227945,12 @@ def update_workspace( Number of tokens. "total_datasources": 0, # Optional. Number of datasources being indexed. + "total_items_failed": "str", + # Optional. Total Items Failed. + "total_items_indexed": "str", + # Optional. Total Items Indexed. + "total_items_skipped": "str", + # Optional. Total Items Skipped. "updated_at": "2020-02-20 00:00:00", # Optional. Last modified. "uuid": "str" # Optional. @@ -226772,6 +227979,10 @@ def update_workspace( Galileo project identifier. "galileo_project_name": "str", # Optional. Name of the Galileo project. + "insights_enabled": bool, # Optional. + Whether insights are enabled. + "insights_enabled_at": "2020-02-20 00:00:00", + # Optional. Timestamp when insights were enabled. "log_stream_id": "str", # Optional. Identifier for the log stream. "log_stream_name": "str" # Optional. Name of @@ -226993,6 +228204,12 @@ def update_workspace( Optional. Number of tokens. "total_datasources": 0, # Optional. Number of datasources being indexed. + "total_items_failed": + "str", # Optional. Total Items Failed. + "total_items_indexed": "str", # Optional. Total + Items Indexed. + "total_items_skipped": "str", # Optional. Total + Items Skipped. "updated_at": "2020-02-20 00:00:00", # Optional. Last modified. "uuid": "str" # @@ -227638,6 +228855,12 @@ def list_agents_by_workspace( tokens. "total_datasources": 0, # Optional. Number of datasources being indexed. + "total_items_failed": "str", # + Optional. Total Items Failed. + "total_items_indexed": "str", # + Optional. Total Items Indexed. + "total_items_skipped": "str", # + Optional. Total Items Skipped. "updated_at": "2020-02-20 00:00:00", # Optional. Last modified. "uuid": "str" # Optional. Unique id. @@ -227664,6 +228887,10 @@ def list_agents_by_workspace( project identifier. "galileo_project_name": "str", # Optional. Name of the Galileo project. + "insights_enabled": bool, # Optional. Whether + insights are enabled. + "insights_enabled_at": "2020-02-20 00:00:00", # + Optional. Timestamp when insights were enabled. "log_stream_id": "str", # Optional. Identifier for the log stream. "log_stream_name": "str" # Optional. Name of the log @@ -227871,6 +229098,12 @@ def list_agents_by_workspace( Number of tokens. "total_datasources": 0, # Optional. Number of datasources being indexed. + "total_items_failed": "str", + # Optional. Total Items Failed. + "total_items_indexed": "str", + # Optional. Total Items Indexed. + "total_items_skipped": "str", + # Optional. Total Items Skipped. "updated_at": "2020-02-20 00:00:00", # Optional. Last modified. "uuid": "str" # Optional. @@ -228440,6 +229673,12 @@ def update_agents_workspace( Number of tokens. "total_datasources": 0, # Optional. Number of datasources being indexed. + "total_items_failed": "str", + # Optional. Total Items Failed. + "total_items_indexed": "str", + # Optional. Total Items Indexed. + "total_items_skipped": "str", + # Optional. Total Items Skipped. "updated_at": "2020-02-20 00:00:00", # Optional. Last modified. "uuid": "str" # Optional. @@ -228468,6 +229707,10 @@ def update_agents_workspace( Galileo project identifier. "galileo_project_name": "str", # Optional. Name of the Galileo project. + "insights_enabled": bool, # Optional. + Whether insights are enabled. + "insights_enabled_at": "2020-02-20 00:00:00", + # Optional. Timestamp when insights were enabled. "log_stream_id": "str", # Optional. Identifier for the log stream. "log_stream_name": "str" # Optional. Name of @@ -228689,6 +229932,12 @@ def update_agents_workspace( Optional. Number of tokens. "total_datasources": 0, # Optional. Number of datasources being indexed. + "total_items_failed": + "str", # Optional. Total Items Failed. + "total_items_indexed": "str", # Optional. Total + Items Indexed. + "total_items_skipped": "str", # Optional. Total + Items Skipped. "updated_at": "2020-02-20 00:00:00", # Optional. Last modified. "uuid": "str" # @@ -229145,6 +230394,12 @@ def update_agents_workspace( Number of tokens. "total_datasources": 0, # Optional. Number of datasources being indexed. + "total_items_failed": "str", + # Optional. Total Items Failed. + "total_items_indexed": "str", + # Optional. Total Items Indexed. + "total_items_skipped": "str", + # Optional. Total Items Skipped. "updated_at": "2020-02-20 00:00:00", # Optional. Last modified. "uuid": "str" # Optional. @@ -229173,6 +230428,10 @@ def update_agents_workspace( Galileo project identifier. "galileo_project_name": "str", # Optional. Name of the Galileo project. + "insights_enabled": bool, # Optional. + Whether insights are enabled. + "insights_enabled_at": "2020-02-20 00:00:00", + # Optional. Timestamp when insights were enabled. "log_stream_id": "str", # Optional. Identifier for the log stream. "log_stream_name": "str" # Optional. Name of @@ -229394,6 +230653,12 @@ def update_agents_workspace( Optional. Number of tokens. "total_datasources": 0, # Optional. Number of datasources being indexed. + "total_items_failed": + "str", # Optional. Total Items Failed. + "total_items_indexed": "str", # Optional. Total + Items Indexed. + "total_items_skipped": "str", # Optional. Total + Items Skipped. "updated_at": "2020-02-20 00:00:00", # Optional. Last modified. "uuid": "str" # @@ -229853,6 +231118,12 @@ def update_agents_workspace( Number of tokens. "total_datasources": 0, # Optional. Number of datasources being indexed. + "total_items_failed": "str", + # Optional. Total Items Failed. + "total_items_indexed": "str", + # Optional. Total Items Indexed. + "total_items_skipped": "str", + # Optional. Total Items Skipped. "updated_at": "2020-02-20 00:00:00", # Optional. Last modified. "uuid": "str" # Optional. @@ -229881,6 +231152,10 @@ def update_agents_workspace( Galileo project identifier. "galileo_project_name": "str", # Optional. Name of the Galileo project. + "insights_enabled": bool, # Optional. + Whether insights are enabled. + "insights_enabled_at": "2020-02-20 00:00:00", + # Optional. Timestamp when insights were enabled. "log_stream_id": "str", # Optional. Identifier for the log stream. "log_stream_name": "str" # Optional. Name of @@ -230102,6 +231377,12 @@ def update_agents_workspace( Optional. Number of tokens. "total_datasources": 0, # Optional. Number of datasources being indexed. + "total_items_failed": + "str", # Optional. Total Items Failed. + "total_items_indexed": "str", # Optional. Total + Items Indexed. + "total_items_skipped": "str", # Optional. Total + Items Skipped. "updated_at": "2020-02-20 00:00:00", # Optional. Last modified. "uuid": "str" #