22
33from __future__ import annotations
44
5- from typing import Optional
5+ from typing import Dict , Optional
66from typing_extensions import Literal
77
88import httpx
@@ -253,11 +253,12 @@ def update(
253253 ]
254254 | Omit = omit ,
255255 field_count : Optional [int ] | Omit = omit ,
256- meta_error : Optional [str ] | Omit = omit ,
257- meta_status : Optional [Literal ["processing" , "failed" , "success" , "unprocessed" ]] | Omit = omit ,
256+ meta_status : Optional [Literal ["unavailable" , "available" ]] | Omit = omit ,
258257 name : Optional [str ] | Omit = omit ,
259258 sample_questions : Optional [str ] | Omit = omit ,
260259 schema_count : Optional [int ] | Omit = omit ,
260+ sync_error : Optional [Dict [str , object ]] | Omit = omit ,
261+ sync_status : Optional [Literal ["processing" , "success" , "failed" , "warning" ]] | Omit = omit ,
261262 table_count : Optional [int ] | Omit = omit ,
262263 # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
263264 # The extra values given here take precedence over values defined on the client or passed to this method.
@@ -278,16 +279,18 @@ def update(
278279
279280 field_count: 字段数量
280281
281- meta_error: 元数据处理错误
282-
283- meta_status: 元数据处理状态
282+ meta_status: 数据源可用性
284283
285284 name: 数据源的名称
286285
287286 sample_questions: 示例问题
288287
289288 schema_count: 库数量
290289
290+ sync_error: 同步错误信息
291+
292+ sync_status: 同步状态
293+
291294 table_count: 表数量
292295
293296 extra_headers: Send extra headers
@@ -308,11 +311,12 @@ def update(
308311 "desc" : desc ,
309312 "engine" : engine ,
310313 "field_count" : field_count ,
311- "meta_error" : meta_error ,
312314 "meta_status" : meta_status ,
313315 "name" : name ,
314316 "sample_questions" : sample_questions ,
315317 "schema_count" : schema_count ,
318+ "sync_error" : sync_error ,
319+ "sync_status" : sync_status ,
316320 "table_count" : table_count ,
317321 },
318322 datasource_update_params .DatasourceUpdateParams ,
@@ -773,11 +777,12 @@ async def update(
773777 ]
774778 | Omit = omit ,
775779 field_count : Optional [int ] | Omit = omit ,
776- meta_error : Optional [str ] | Omit = omit ,
777- meta_status : Optional [Literal ["processing" , "failed" , "success" , "unprocessed" ]] | Omit = omit ,
780+ meta_status : Optional [Literal ["unavailable" , "available" ]] | Omit = omit ,
778781 name : Optional [str ] | Omit = omit ,
779782 sample_questions : Optional [str ] | Omit = omit ,
780783 schema_count : Optional [int ] | Omit = omit ,
784+ sync_error : Optional [Dict [str , object ]] | Omit = omit ,
785+ sync_status : Optional [Literal ["processing" , "success" , "failed" , "warning" ]] | Omit = omit ,
781786 table_count : Optional [int ] | Omit = omit ,
782787 # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
783788 # The extra values given here take precedence over values defined on the client or passed to this method.
@@ -798,16 +803,18 @@ async def update(
798803
799804 field_count: 字段数量
800805
801- meta_error: 元数据处理错误
802-
803- meta_status: 元数据处理状态
806+ meta_status: 数据源可用性
804807
805808 name: 数据源的名称
806809
807810 sample_questions: 示例问题
808811
809812 schema_count: 库数量
810813
814+ sync_error: 同步错误信息
815+
816+ sync_status: 同步状态
817+
811818 table_count: 表数量
812819
813820 extra_headers: Send extra headers
@@ -828,11 +835,12 @@ async def update(
828835 "desc" : desc ,
829836 "engine" : engine ,
830837 "field_count" : field_count ,
831- "meta_error" : meta_error ,
832838 "meta_status" : meta_status ,
833839 "name" : name ,
834840 "sample_questions" : sample_questions ,
835841 "schema_count" : schema_count ,
842+ "sync_error" : sync_error ,
843+ "sync_status" : sync_status ,
836844 "table_count" : table_count ,
837845 },
838846 datasource_update_params .DatasourceUpdateParams ,
0 commit comments